From: Ted Kremenek Date: Mon, 12 May 2008 17:40:56 +0000 (+0000) Subject: Grammar cleanup in comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81edea8a1aaafe0df69a8a8b3c908354acc85e9c;p=clang Grammar cleanup in comment. Remove redundant assignment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50978 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }