aboutsummaryrefslogtreecommitdiff
path: root/lib/AST
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST')
-rw-r--r--lib/AST/DeclSerialization.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/AST/DeclSerialization.cpp b/lib/AST/DeclSerialization.cpp
index 291649b0d0..91d043ce8f 100644
--- a/lib/AST/DeclSerialization.cpp
+++ b/lib/AST/DeclSerialization.cpp
@@ -117,9 +117,9 @@ void ScopedDecl::ReadInRec(Deserializer& D, ASTContext& C) {
NamedDecl::ReadInRec(D, C);
D.ReadPtr(Next); // From ScopedDecl.
- DeclCtx = 0; // Allow back-patching. Observe that we register
+ assert(DeclCtx == 0) // Allow back-patching. Observe that we register
D.ReadPtr(DeclCtx); // the variable of the *object* for back-patching.
- // It's actual value will get filled in later.
+ // Its actual value will get filled in later.
}
//===------------------------------------------------------------===//
@@ -251,7 +251,6 @@ VarDecl* VarDecl::CreateImpl(Deserializer& D, ASTContext& C) {
new (Mem) VarDecl(Var, 0, SourceLocation(), NULL, QualType(), None, NULL);
decl->VarDecl::ReadImpl(D, C);
-
return decl;
}