diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-20 01:52:55 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-20 01:52:55 +0000 |
commit | 2af3cee287c5714a2ad40066b7f49943f796b7d7 (patch) | |
tree | bf19b9900852435911fb5ebf6d7507f115017c95 /clang/lib/Lex/PPLexerChange.cpp | |
parent | b33ce32bda743baf56a4640fc9bbb477088063aa (diff) | |
download | bcm5719-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.cpp | 8 |
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. |