Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer* (narrower interface).

llvm-svn: 59691
This commit is contained in:
Ted Kremenek 2008-11-20 01:35:24 +00:00
parent b0262c1e64
commit 6552d259d4
1 changed files with 1 additions and 1 deletions

View File

@ -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());