summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-13 23:06:48 +0000
committerChris Lattner <sabre@nondot.org>2009-02-13 23:06:48 +0000
commit190f64e9b8703db38f042e347593caae4526dc02 (patch)
tree286681288609f7c511c771395444b4a8278404b6 /clang/lib
parentf9f039865fbc0430750210141c9210d7eaf456b2 (diff)
downloadbcm5719-llvm-190f64e9b8703db38f042e347593caae4526dc02.tar.gz
bcm5719-llvm-190f64e9b8703db38f042e347593caae4526dc02.zip
add an assertion from Alexei Svitkine!
llvm-svn: 64503
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 244281fde69..ec3447a5af9 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud