From: Benjamin Kramer Date: Sun, 17 Oct 2010 07:39:34 +0000 (+0000) Subject: std::string cleanup. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4c8a985ed50c2395c6f08d8153f26673ac3a927b;p=oota-llvm.git std::string cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116686 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,