forked from OSchip/llvm-project
Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer* (narrower interface).
llvm-svn: 59691
This commit is contained in:
parent
b0262c1e64
commit
6552d259d4
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue