forked from OSchip/llvm-project
Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef.
llvm-svn: 120777
This commit is contained in:
parent
4571040ea1
commit
a41772aa0f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue