summaryrefslogtreecommitdiffstats
path: root/lib/Lex/TokenLexer.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-08-11 14:47:12 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-08-11 14:47:12 +0000
commit476d8b863cb65b2b5833235d97315cdb46e6f5aa (patch)
tree6bd2225456dbb838c553754b5d4a39c1bec05b72 /lib/Lex/TokenLexer.cpp
parent7f1c547ee6cd413845f7df9713c701f99866f91d (diff)
Random temporary string cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/TokenLexer.cpp')
-rw-r--r--lib/Lex/TokenLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/TokenLexer.cpp b/lib/Lex/TokenLexer.cpp
index 55609492a7..49dc016590 100644
--- a/lib/Lex/TokenLexer.cpp
+++ b/lib/Lex/TokenLexer.cpp
@@ -492,7 +492,7 @@ bool TokenLexer::PasteTokens(Token &Tok) {
PP.Diag(Loc,
PP.getLangOptions().Microsoft ? diag::err_pp_bad_paste_ms
: diag::err_pp_bad_paste)
- << std::string(Buffer.begin(), Buffer.end());
+ << Buffer.str();
}
// Do not consume the RHS.