summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.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
commite8394df11b662bb485e323a05dd2d0c4f7e82742 (patch)
treefb6cea94a9e0cbd8fe54a83e17531af206aae383 /clang/lib/Lex/Preprocessor.cpp
parent13e658731346914749b7fb17d12417c04166c6ff (diff)
downloadbcm5719-llvm-e8394df11b662bb485e323a05dd2d0c4f7e82742.tar.gz
bcm5719-llvm-e8394df11b662bb485e323a05dd2d0c4f7e82742.zip
Random temporary string cleanup.
llvm-svn: 110807
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index fc1418ffef6..77b88f7e47c 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -164,7 +164,7 @@ void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {
llvm::errs() << " [ExpandDisabled]";
if (Tok.needsCleaning()) {
const char *Start = SourceMgr.getCharacterData(Tok.getLocation());
- llvm::errs() << " [UnClean='" << std::string(Start, Start+Tok.getLength())
+ llvm::errs() << " [UnClean='" << llvm::StringRef(Start, Tok.getLength())
<< "']";
}
OpenPOWER on IntegriCloud