diff options
Diffstat (limited to 'clang/Lex/Preprocessor.cpp')
| -rw-r--r-- | clang/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp index ce4a7ffb8cf..8002702638d 100644 --- a/clang/Lex/Preprocessor.cpp +++ b/clang/Lex/Preprocessor.cpp @@ -837,7 +837,7 @@ void Preprocessor::ExpandBuiltinMacro(LexerToken &Tok) { // Escape this filename. Turn '\' -> '\\' '"' -> '\"' std::string FN = SourceMgr.getSourceName(Loc); - FN = Lexer::Stringify(FN); + FN = '"' + Lexer::Stringify(FN) + '"'; Tok.SetKind(tok::string_literal); Tok.SetLength(FN.size()); Tok.SetLocation(CreateString(&FN[0], FN.size(), Tok.getLocation())); |

