diff options
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | clang/lib/Lex/PPLexerChange.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index da877493a0f..e755edb55e0 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -74,7 +74,7 @@ void Preprocessor::EnterSourceFile(unsigned FileID, if (MaxIncludeStackDepth < IncludeMacroStack.size()) MaxIncludeStackDepth = IncludeMacroStack.size(); -#if 1 +#if 0 Lexer *TheLexer = new Lexer(SourceLocation::getFileLoc(FileID, 0), *this); EnterSourceFileWithLexer(TheLexer, CurDir); #else @@ -122,6 +122,9 @@ void Preprocessor::EnterSourceFile(unsigned FileID, L.ParsingPreprocessorDirective = true; L.LexIncludeFilename(Tok); L.ParsingPreprocessorDirective = false; + + if (Tok.is(tok::identifier)) + Tok.setIdentifierInfo(LookUpIdentifierInfo(Tok)); } } } |