From: Ted Kremenek Date: Thu, 20 Nov 2008 01:35:24 +0000 (+0000) Subject: Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a275a191fccfb2f9dff57f43d76dd266ff33bff7;p=clang 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 --- 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());