From 4c8a985ed50c2395c6f08d8153f26673ac3a927b Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 17 Oct 2010 07:39:34 +0000 Subject: [PATCH] std::string cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116686 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index c5940d3423f..b2be64cc217 100644 --- a/lib/VMCore/Core.cpp +++ b/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, -- 2.34.1