aboutsummaryrefslogtreecommitdiff
path: root/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
commita751217e769cbe73df2d579a28153f1c947aef10 (patch)
treeb37a92ebf27334cf8bb9925d0bb1ab2e37d22e73 /lib/Lex/PPLexerChange.cpp
parent68e48e4a81767997ef0231e47eca4f665102c95e (diff)
Make FIXME a hard assertion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r--lib/Lex/PPLexerChange.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp
index 09b60768fc..1df4d210b8 100644
--- a/lib/Lex/PPLexerChange.cpp
+++ b/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.