From: Chris Lattner Date: Fri, 13 Feb 2009 23:06:48 +0000 (+0000) Subject: add an assertion from Alexei Svitkine! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67116083e70ad44799808c7472d9cd9e7e21d4d5;p=clang add an assertion from Alexei Svitkine! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64503 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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(); }