From: Michael J. Spencer Date: Fri, 3 Dec 2010 01:21:38 +0000 (+0000) Subject: Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2dbdeee87a48d253c00851ca71c388c45423480d;p=oota-llvm.git Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120777 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index 909deb0418c..a93ac224a3d 100644 --- a/lib/Support/Windows/PathV2.inc +++ b/lib/Support/Windows/PathV2.inc @@ -162,8 +162,8 @@ error_code copy_file(const Twine &from, const Twine &to, copy_option copt) { // 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 wide_from;