diff options
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptToken.cpp')
-rw-r--r-- | llvm/tools/llvm-rc/ResourceScriptToken.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptToken.cpp b/llvm/tools/llvm-rc/ResourceScriptToken.cpp index 36027d14ba0..061070b479e 100644 --- a/llvm/tools/llvm-rc/ResourceScriptToken.cpp +++ b/llvm/tools/llvm-rc/ResourceScriptToken.cpp @@ -219,7 +219,10 @@ Error Tokenizer::consumeToken(const Kind TokenKind) { } else if (Data[Pos] == '"') { // Consume the ending double-quote. advance(); - return Error::success(); + // However, if another '"' follows this double-quote, the string didn't + // end and we just included '"' into the string. + if (!willNowRead("\"")) + return Error::success(); } else if (Data[Pos] == '\n') { return getStringError("String literal not terminated in the line."); } |