summaryrefslogtreecommitdiff
path: root/utils/FileCheck
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-11-17 19:00:52 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-11-17 19:00:52 +0000
commit034f8656645697556783a94bbb235f782131986b (patch)
tree2c70fc26c592e3f3e4cb3050d4642f37f16b3d64 /utils/FileCheck
parente6d768f8615d26e035e42ec08a19ba74f2c84e6f (diff)
StringRef-ify some Option APIs
Patch by Eugene Kosov! Differential Revision: http://reviews.llvm.org/D14711 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/FileCheck')
-rw-r--r--utils/FileCheck/FileCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp
index 50d324a5e46..f73a0fee76c 100644
--- a/utils/FileCheck/FileCheck.cpp
+++ b/utils/FileCheck/FileCheck.cpp
@@ -857,7 +857,7 @@ static bool ReadCheckFile(SourceMgr &SM,
for (const auto &PatternString : ImplicitCheckNot) {
// Create a buffer with fake command line content in order to display the
// command line option responsible for the specific implicit CHECK-NOT.
- std::string Prefix = std::string("-") + ImplicitCheckNot.ArgStr + "='";
+ std::string Prefix = (Twine("-") + ImplicitCheckNot.ArgStr + "='").str();
std::string Suffix = "'";
std::unique_ptr<MemoryBuffer> CmdLine = MemoryBuffer::getMemBufferCopy(
Prefix + PatternString + Suffix, "command line");