summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-10-17 07:39:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-10-17 07:39:34 +0000
commit74beb4278a303599133e3f41c01b2b8b3b55882e (patch)
treec3085810ad4ceb8ff8d17d378048bf916902a1ee /llvm/lib/VMCore/Core.cpp
parent77414757f6c02f44e6a5a31b4e7f925b0f0c477d (diff)
downloadbcm5719-llvm-74beb4278a303599133e3f41c01b2b8b3b55882e.tar.gz
bcm5719-llvm-74beb4278a303599133e3f41c01b2b8b3b55882e.zip
std::string cleanup.
llvm-svn: 116686
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index c5940d3423f..b2be64cc217 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/lib/VMCore/Core.cpp
@@ -587,7 +587,7 @@ LLVMValueRef LLVMConstStringInContext(LLVMContextRef C, const char *Str,
LLVMBool DontNullTerminate) {
/* Inverted the sense of AddNull because ', 0)' is a
better mnemonic for null termination than ', 1)'. */
- return wrap(ConstantArray::get(*unwrap(C), std::string(Str, Length),
+ return wrap(ConstantArray::get(*unwrap(C), StringRef(Str, Length),
DontNullTerminate == 0));
}
LLVMValueRef LLVMConstStructInContext(LLVMContextRef C,
OpenPOWER on IntegriCloud