aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/TokenLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-18 21:48:13 +0000
committerChris Lattner <sabre@nondot.org>2008-11-18 21:48:13 +0000
commit204b2fed909b1eabea7aeb6caadd7cff718edee5 (patch)
treed8d3acfa6538b35a5d2a896ac44496d1ad16810f /lib/Lex/TokenLexer.cpp
parent6dc2317b59cb1180a59f6c283d96b7a5dfeb5307 (diff)
Remove the last of the old-style Preprocessor::Diag methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/TokenLexer.cpp')
-rw-r--r--lib/Lex/TokenLexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/TokenLexer.cpp b/lib/Lex/TokenLexer.cpp
index 82b2b4df0b..6399e867b3 100644
--- a/lib/Lex/TokenLexer.cpp
+++ b/lib/Lex/TokenLexer.cpp
@@ -423,8 +423,8 @@ bool TokenLexer::PasteTokens(Token &Tok) {
return true;
} else {
// TODO: If not in assembler language mode.
- PP.Diag(PasteOpLoc, diag::err_pp_bad_paste,
- std::string(Buffer.begin(), Buffer.end()-1));
+ PP.Diag(PasteOpLoc, diag::err_pp_bad_paste)
+ << std::string(Buffer.begin(), Buffer.end()-1);
return false;
}
}