From 2861cf42fe10490ffba2201ce66fa271d1bd3750 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 19 Nov 2008 22:55:25 +0000 Subject: Use PreprocessorLexer::getFileID() instead of Lexer::getFileLoc(). This is an intermediate step to having getCurrentLexer() return a PreprocessorLexer* instead of a Lexer*. llvm-svn: 59672 --- clang/lib/Lex/PPMacroExpansion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Lex/PPMacroExpansion.cpp') 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; -- cgit v1.2.1