[cfe-commits] r59691 - /cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 19 17:35:24 PST 2008


Author: kremenek
Date: Wed Nov 19 19:35:24 2008
New Revision: 59691

URL: http://llvm.org/viewvc/llvm-project?rev=59691&view=rev
Log:
Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer* (narrower interface).

Modified:
    cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=59691&r1=59690&r2=59691&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Wed Nov 19 19:35:24 2008
@@ -510,7 +510,7 @@
     // 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());





More information about the cfe-commits mailing list