[cfe-commits] r106195 - /cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp

Ted Kremenek kremenek at apple.com
Wed Jun 16 17:59:17 PDT 2010


Author: kremenek
Date: Wed Jun 16 19:59:17 2010
New Revision: 106195

URL: http://llvm.org/viewvc/llvm-project?rev=106195&view=rev
Log:
Per conversation with Doug, remove two assertions in ParseLexedMethodDefs() that
didn't indicate violated invariants but that we weren't recovering well.

Modified:
    cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp

Modified: cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp?rev=106195&r1=106194&r2=106195&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp (original)
+++ cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp Wed Jun 16 19:59:17 2010
@@ -232,11 +232,9 @@
       Actions.ActOnDefaultCtorInitializers(LM.D);
 
     ParseFunctionStatementBody(LM.D);
-    assert(!PP.getSourceManager().isBeforeInTranslationUnit(origLoc,
-                                                           Tok.getLocation()) &&
-           "We consumed more than the cached tokens!");
-    assert(Tok.getLocation() == origLoc &&
-           "Tokens were left in the token stream!");
+
+    // FIXME:  We need to make sure the caching mechanism here is robust
+    //  against the parser reading too few token
   }
 
   for (unsigned I = 0, N = Class.NestedClasses.size(); I != N; ++I)





More information about the cfe-commits mailing list