[cfe-commits] r50978 - /cfe/trunk/lib/AST/DeclSerialization.cpp

Ted Kremenek kremenek at apple.com
Mon May 12 10:40:57 PDT 2008


Author: kremenek
Date: Mon May 12 12:40:56 2008
New Revision: 50978

URL: http://llvm.org/viewvc/llvm-project?rev=50978&view=rev
Log:
Grammar cleanup in comment.
Remove redundant assignment.

Modified:
    cfe/trunk/lib/AST/DeclSerialization.cpp

Modified: cfe/trunk/lib/AST/DeclSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclSerialization.cpp?rev=50978&r1=50977&r2=50978&view=diff

==============================================================================
--- cfe/trunk/lib/AST/DeclSerialization.cpp (original)
+++ cfe/trunk/lib/AST/DeclSerialization.cpp Mon May 12 12:40:56 2008
@@ -117,9 +117,9 @@
   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 @@
     new (Mem) VarDecl(Var, 0, SourceLocation(), NULL, QualType(), None, NULL);
  
   decl->VarDecl::ReadImpl(D, C);
-  
   return decl;
 }
 





More information about the cfe-commits mailing list