[llvm-commits] [llvm] r116686 - /llvm/trunk/lib/VMCore/Core.cpp

Benjamin Kramer benny.kra at googlemail.com
Sun Oct 17 00:39:34 PDT 2010


Author: d0k
Date: Sun Oct 17 02:39:34 2010
New Revision: 116686

URL: http://llvm.org/viewvc/llvm-project?rev=116686&view=rev
Log:
std::string cleanup.

Modified:
    llvm/trunk/lib/VMCore/Core.cpp

Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=116686&r1=116685&r2=116686&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Sun Oct 17 02:39:34 2010
@@ -587,7 +587,7 @@
                                       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, 





More information about the llvm-commits mailing list