[llvm-commits] [llvm] r120777 - /llvm/trunk/lib/Support/Windows/PathV2.inc

Michael J. Spencer bigcheesegs at gmail.com
Thu Dec 2 17:21:38 PST 2010


Author: mspencer
Date: Thu Dec  2 19:21:38 2010
New Revision: 120777

URL: http://llvm.org/viewvc/llvm-project?rev=120777&view=rev
Log:
Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef.

Modified:
    llvm/trunk/lib/Support/Windows/PathV2.inc

Modified: llvm/trunk/lib/Support/Windows/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/PathV2.inc?rev=120777&r1=120776&r2=120777&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Windows/PathV2.inc Thu Dec  2 19:21:38 2010
@@ -162,8 +162,8 @@
   // Get arguments.
   SmallString<128> from_storage;
   SmallString<128> to_storage;
-  StringRef f = from.toNullTerminatedStringRef(from_storage);
-  StringRef t = to.toNullTerminatedStringRef(to_storage);
+  StringRef f = from.toStringRef(from_storage);
+  StringRef t = to.toStringRef(to_storage);
 
   // Convert to utf-16.
   SmallVector<wchar_t, 128> wide_from;





More information about the llvm-commits mailing list