diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-03 01:21:38 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-03 01:21:38 +0000 |
commit | 2dbdeee87a48d253c00851ca71c388c45423480d (patch) | |
tree | 29385474f772b4285131cd51a9df947f30be6fa6 /lib/Support/Windows | |
parent | 3cb84ef65dd417bc152fdaa173127966ca949318 (diff) | |
download | external_llvm-2dbdeee87a48d253c00851ca71c388c45423480d.zip external_llvm-2dbdeee87a48d253c00851ca71c388c45423480d.tar.gz external_llvm-2dbdeee87a48d253c00851ca71c388c45423480d.tar.bz2 |
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')
-rw-r--r-- | lib/Support/Windows/PathV2.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index 909deb0..a93ac22 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; |