diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2008-01-10 00:24:29 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-01-10 00:24:29 +0000 |
| commit | 82ae0152a7ab97745af28d777cc612f0e702b06a (patch) | |
| tree | 651d00ec0bbe880d19699999e2e71d38ce6b4654 /clang/AST/StmtSerialization.cpp | |
| parent | 73d1017871ec6b8024964e7379e1ef22ea111b72 (diff) | |
| download | bcm5719-llvm-82ae0152a7ab97745af28d777cc612f0e702b06a.tar.gz bcm5719-llvm-82ae0152a7ab97745af28d777cc612f0e702b06a.zip | |
Allow messaging expression as foreach's collection expression.
llvm-svn: 45793
Diffstat (limited to 'clang/AST/StmtSerialization.cpp')
| -rw-r--r-- | clang/AST/StmtSerialization.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/AST/StmtSerialization.cpp b/clang/AST/StmtSerialization.cpp index 56d4e2f20cf..2dbb125f903 100644 --- a/clang/AST/StmtSerialization.cpp +++ b/clang/AST/StmtSerialization.cpp @@ -921,16 +921,18 @@ ObjCEncodeExpr* ObjCEncodeExpr::CreateImpl(Deserializer& D) { void ObjCForCollectionStmt::EmitImpl(Serializer& S) const { S.Emit(ForLoc); + S.Emit(RParenLoc); S.BatchEmitOwnedPtrs(getElement(),getCollection(),getBody()); } ObjCForCollectionStmt* ObjCForCollectionStmt::CreateImpl(Deserializer& D) { SourceLocation ForLoc = SourceLocation::ReadVal(D); + SourceLocation RParenLoc = SourceLocation::ReadVal(D); Stmt* Element; Expr* Collection; Stmt* Body; D.BatchReadOwnedPtrs(Element,Collection,Body); - return new ObjCForCollectionStmt(Element,Collection,Body,ForLoc); + return new ObjCForCollectionStmt(Element,Collection,Body,ForLoc, RParenLoc); } void ObjCIvarRefExpr::EmitImpl(Serializer& S) const { |

