diff options
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 { |

