From 6552d259d4bc71015f6bd4d23e3841e82037d70d Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 20 Nov 2008 01:35:24 +0000 Subject: [PATCH] Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer* (narrower interface). llvm-svn: 59691 --- clang/lib/Lex/PPMacroExpansion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 24a9b41a38ae..89885a7cc42f 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/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()); -- GitLab