diff options
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PreprocessorLexer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp index 5a59849720f..33ccbc0cfc9 100644 --- a/clang/lib/Lex/PreprocessorLexer.cpp +++ b/clang/lib/Lex/PreprocessorLexer.cpp @@ -38,7 +38,10 @@ void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) { ParsingFilename = true; // Lex the filename. - IndirectLex(FilenameTok); + if (LexingRawMode) + IndirectLex(FilenameTok); + else + PP->Lex(FilenameTok); // We should have obtained the filename now. ParsingFilename = false; |