diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-27 22:00:37 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-27 22:00:37 +0000 |
commit | cfcceab862141b7cc3df42ced5f421d76e536a36 (patch) | |
tree | 1b18420d77ea0ffe08d8513388b542061790686b /lib/Lex/TokenLexer.cpp | |
parent | 14674ffb81dccbc4e1bf78ab5b7987685819b445 (diff) |
Make the bad paste diagnostic print the entire pasted token.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/TokenLexer.cpp')
-rw-r--r-- | lib/Lex/TokenLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/TokenLexer.cpp b/lib/Lex/TokenLexer.cpp index 5675f3f7c0..318c57cc5f 100644 --- a/lib/Lex/TokenLexer.cpp +++ b/lib/Lex/TokenLexer.cpp @@ -473,7 +473,7 @@ bool TokenLexer::PasteTokens(Token &Tok) { // Do not emit the warning when preprocessing assembler code. if (!PP.getLangOptions().AsmPreprocessor) PP.Diag(PasteOpLoc, diag::err_pp_bad_paste) - << std::string(Buffer.begin(), Buffer.end()-1); + << std::string(Buffer.begin(), Buffer.end()); // Do not consume the RHS. --CurToken; |