aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclSerialization.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-12 17:40:56 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-12 17:40:56 +0000
commit81edea8a1aaafe0df69a8a8b3c908354acc85e9c (patch)
tree5ca531d89b2a5b4f23f8f0a2ebb2860a524b6743 /lib/AST/DeclSerialization.cpp
parent901b412d65d40ed8df16701e89bf5dd5b145cbd0 (diff)
Grammar cleanup in comment.
Remove redundant assignment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclSerialization.cpp')
-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;
}