]> granicus.if.org Git - clang/commitdiff
Per conversation with Doug, remove two assertions in ParseLexedMethodDefs() that
authorTed Kremenek <kremenek@apple.com>
Thu, 17 Jun 2010 00:59:17 +0000 (00:59 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 17 Jun 2010 00:59:17 +0000 (00:59 +0000)
didn't indicate violated invariants but that we weren't recovering well.

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

lib/Parse/ParseCXXInlineMethods.cpp

index 5405c0cb78ef6588080f7ec9496cc85c07a6d4d6..fd231901a4c34dac090e45856910768c2de595e5 100644 (file)
@@ -232,11 +232,9 @@ void Parser::ParseLexedMethodDefs(ParsingClass &Class) {
       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)