summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-20 01:52:55 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-20 01:52:55 +0000
commit2af3cee287c5714a2ad40066b7f49943f796b7d7 (patch)
treebf19b9900852435911fb5ebf6d7507f115017c95 /clang/lib/Lex/PPLexerChange.cpp
parentb33ce32bda743baf56a4640fc9bbb477088063aa (diff)
downloadbcm5719-llvm-2af3cee287c5714a2ad40066b7f49943f796b7d7.tar.gz
bcm5719-llvm-2af3cee287c5714a2ad40066b7f49943f796b7d7.zip
Make FIXME a hard assertion.
llvm-svn: 59695
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 09b60768fc7..1df4d210b84 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/lib/Lex/PPLexerChange.cpp
@@ -173,10 +173,14 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) {
SrcMgr::CharacteristicKind FileType =
SourceMgr.getFileCharacteristic(CurPPLexer->getFileID());
- if (CurLexer)
+ if (CurLexer) {
+ // FIXME: Should we use the location of 'Result'?
Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr),
PPCallbacks::ExitFile, FileType);
- // FIXME: Add callback support for PTHLexer.
+ }
+ else {
+ assert (0 && "FIXME: Add callback support for PTHLexer.");
+ }
}
// Client should lex another token.
OpenPOWER on IntegriCloud