diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-06-17 00:59:17 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-06-17 00:59:17 +0000 |
commit | 252485e6bf88064e8cce5b47da2481e6c795c21d (patch) | |
tree | 1243df5f2477146a265bd26573327d5c92cd8bd0 | |
parent | 6ec9debb2ae0755168974dc52e9e9122724ddbf4 (diff) |
Per conversation with Doug, remove two assertions in ParseLexedMethodDefs() that
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
-rw-r--r-- | lib/Parse/ParseCXXInlineMethods.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp index 5405c0cb78..fd231901a4 100644 --- a/lib/Parse/ParseCXXInlineMethods.cpp +++ b/lib/Parse/ParseCXXInlineMethods.cpp @@ -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) |