diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-22 15:35:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-22 15:35:21 +0000 |
commit | a6324c94638f4c2cb47b386f4153d63b591bc5f2 (patch) | |
tree | 4277c2cd65de8dcea75b553e2ebeb53848885845 /clang/lib | |
parent | e015f66a73ac8063b41663d339b9b8841351d564 (diff) | |
download | bcm5719-llvm-a6324c94638f4c2cb47b386f4153d63b591bc5f2.tar.gz bcm5719-llvm-a6324c94638f4c2cb47b386f4153d63b591bc5f2.zip |
Disable trigraph and escaped newline expansion on all types of raw string literals not just ASCII type.
llvm-svn: 251025
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 4007914b6c0..a3ec1b3b0e0 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -235,7 +235,7 @@ static size_t getSpellingSlow(const Token &Tok, const char *BufPtr, size_t Length = 0; const char *BufEnd = BufPtr + Tok.getLength(); - if (Tok.is(tok::string_literal)) { + if (tok::isStringLiteral(Tok.getKind())) { // Munch the encoding-prefix and opening double-quote. while (BufPtr < BufEnd) { unsigned Size; |