commit | 67116083e70ad44799808c7472d9cd9e7e21d4d5 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Feb 13 23:06:48 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Feb 13 23:06:48 2009 +0000 |
tree | 9269b707ddfcaf06bedb9d260cab3c6a976ec0db | |
parent | e4c9238795d206e22694101d6d727d2ee1f0028d [diff] [blame] |
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 244281f..ec3447a 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp
@@ -227,8 +227,8 @@ // 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(); }