diff options
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
| -rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 53e1f8dc710..24a9b41a38a 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -513,7 +513,7 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) { Lexer *TheLexer = getCurrentFileLexer(); if (TheLexer) - CurFile = SourceMgr.getFileEntryForLoc(TheLexer->getFileLoc()); + CurFile = SourceMgr.getFileEntryForID(TheLexer->getFileID()); // If this file is older than the file it depends on, emit a diagnostic. const char *Result; |

