summaryrefslogtreecommitdiff
path: root/lib/Support/Windows/PathV2.inc
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-03 01:21:38 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-03 01:21:38 +0000
commit2dbdeee87a48d253c00851ca71c388c45423480d (patch)
tree29385474f772b4285131cd51a9df947f30be6fa6 /lib/Support/Windows/PathV2.inc
parent3cb84ef65dd417bc152fdaa173127966ca949318 (diff)
downloadllvm-2dbdeee87a48d253c00851ca71c388c45423480d.tar.gz
llvm-2dbdeee87a48d253c00851ca71c388c45423480d.tar.bz2
llvm-2dbdeee87a48d253c00851ca71c388c45423480d.tar.xz
Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/PathV2.inc')
-rw-r--r--lib/Support/Windows/PathV2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc
index 909deb0418..a93ac224a3 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<wchar_t, 128> wide_from;