summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
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
commita41772aa0fe6233e8be3dc44870ecd11c92b5ec4 (patch)
tree93b2ca511bebbb9b11ccc8ecc7d6da44c6ba7bdd /llvm/lib/Support/Windows
parent4571040ea1931c39b537e7a1034d6ca3d5ed2666 (diff)
downloadbcm5719-llvm-a41772aa0fe6233e8be3dc44870ecd11c92b5ec4.tar.gz
bcm5719-llvm-a41772aa0fe6233e8be3dc44870ecd11c92b5ec4.zip
Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef.
llvm-svn: 120777
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/PathV2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Windows/PathV2.inc b/llvm/lib/Support/Windows/PathV2.inc
index 909deb0418c..a93ac224a3d 100644
--- a/llvm/lib/Support/Windows/PathV2.inc
+++ b/llvm/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;
OpenPOWER on IntegriCloud