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());
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits