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 | 7571228ec9b31de7733ae96352ee4eaa8afcf2b5 (patch) | |
| tree | 42eba1de3ba9fb960f278424bb89ff22d531d19c /AST/StmtSerialization.cpp | |
| parent | 6f81811e6bf5ce6dc43c0ee0bb00087ca5ced378 (diff) | |
Allow messaging expression as foreach's collection expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'AST/StmtSerialization.cpp')
| -rw-r--r-- | AST/StmtSerialization.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/AST/StmtSerialization.cpp b/AST/StmtSerialization.cpp index 56d4e2f20c..2dbb125f90 100644 --- a/AST/StmtSerialization.cpp +++ b/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 { |
