Minor changes as suggested by Chris L.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45598 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/StmtSerialization.cpp b/AST/StmtSerialization.cpp
index 53dabbd..aa45c62 100644
--- a/AST/StmtSerialization.cpp
+++ b/AST/StmtSerialization.cpp
@@ -564,18 +564,18 @@
}
void ObjcForCollectionStmt::EmitImpl(Serializer& S) const {
- S.Emit(ForCollectionLoc);
+ S.Emit(ForLoc);
S.EmitOwnedPtr(getElement());
S.EmitOwnedPtr(getCollection());
S.EmitOwnedPtr(getBody());
}
ObjcForCollectionStmt* ObjcForCollectionStmt::CreateImpl(Deserializer& D) {
- SourceLocation ForCollectionLoc = SourceLocation::ReadVal(D);
+ SourceLocation ForLoc = SourceLocation::ReadVal(D);
Stmt* Element = D.ReadOwnedPtr<Stmt>();
Expr* Collection = D.ReadOwnedPtr<Expr>();
Stmt* Body = D.ReadOwnedPtr<Stmt>();
- return new ObjcForCollectionStmt(Element,Collection,Body,ForCollectionLoc);
+ return new ObjcForCollectionStmt(Element,Collection,Body,ForLoc);
}
void GotoStmt::EmitImpl(Serializer& S) const {