]> granicus.if.org Git - clang/commitdiff
Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer...
authorTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 01:35:24 +0000 (01:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 01:35:24 +0000 (01:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59691 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPMacroExpansion.cpp

index 24a9b41a38ae44c13d1295443bac26219d4de6c6..89885a7cc42f00a3667b14042ffeb42c49467323 100644 (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());