]> granicus.if.org Git - clang/commitdiff
Grammar cleanup in comment.
authorTed Kremenek <kremenek@apple.com>
Mon, 12 May 2008 17:40:56 +0000 (17:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 12 May 2008 17:40:56 +0000 (17:40 +0000)
Remove redundant assignment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50978 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclSerialization.cpp

index 291649b0d061b210c04a68f4d8b0e333d4de602e..91d043ce8ff6a6367858baca30a2f64547bbd1cf 100644 (file)
@@ -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;
 }