]> granicus.if.org Git - clang/commitdiff
Remove an assertion that is not valid if we cancel parsing.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 23 Nov 2011 20:27:29 +0000 (20:27 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 23 Nov 2011 20:27:29 +0000 (20:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145108 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Preprocessor.cpp

index af0faca43b965bd9d35852cadcb4484bd048d3cd..798244c3d2dcf2761825a68708ea520dd0cf274e 100644 (file)
@@ -74,9 +74,6 @@ Preprocessor::Preprocessor(DiagnosticsEngine &diags, LangOptions &opts,
 
 Preprocessor::~Preprocessor() {
   assert(BacktrackPositions.empty() && "EnableBacktrack/Backtrack imbalance!");
-  assert(((MacroExpandingLexersStack.empty() && MacroExpandedTokens.empty()) ||
-          isCodeCompletionReached()) &&
-         "Preprocessor::HandleEndOfTokenLexer should have cleared those");
 
   while (!IncludeMacroStack.empty()) {
     delete IncludeMacroStack.back().TheLexer;