From e93433db8bc4e6a8e8f0b1b55728085ce0f276a9 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 23 Nov 2011 20:27:29 +0000 Subject: [PATCH] Remove an assertion that is not valid if we cancel parsing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145108 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/Preprocessor.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index af0faca43b..798244c3d2 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -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; -- 2.40.0