diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-20 01:35:24 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-20 01:35:24 +0000 |
commit | a275a191fccfb2f9dff57f43d76dd266ff33bff7 (patch) | |
tree | b2f79aea3f788b9e4d3636e9c5bee5cebf84a545 | |
parent | 452e37837a48b2f0ced144784277fd4d28cbede9 (diff) |
Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer* (narrower interface).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59691 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Lex/PPMacroExpansion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index 24a9b41a38..89885a7cc4 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -510,7 +510,7 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) { // Get the file that we are lexing out of. If we're currently lexing from // a macro, dig into the include stack. const FileEntry *CurFile = 0; - Lexer *TheLexer = getCurrentFileLexer(); + PreprocessorLexer *TheLexer = getCurrentFileLexer(); if (TheLexer) CurFile = SourceMgr.getFileEntryForID(TheLexer->getFileID()); |