From a41772aa0fe6233e8be3dc44870ecd11c92b5ec4 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Fri, 3 Dec 2010 01:21:38 +0000 Subject: Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef. llvm-svn: 120777 --- llvm/lib/Support/Windows/PathV2.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/Windows') 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 wide_from; -- cgit v1.2.3