From 67116083e70ad44799808c7472d9cd9e7e21d4d5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 Feb 2009 23:06:48 +0000 Subject: [PATCH] add an assertion from Alexei Svitkine! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64503 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/PPLexerChange.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 244281fde6..ec3447a5af 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -227,8 +227,8 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { // We're done with the #included file. CurLexer.reset(); - } - else { + } else { + assert(CurPTHLexer && "Got EOF but no current lexer set!"); CurPTHLexer->getEOF(Result); CurPTHLexer.reset(); } -- 2.40.0