projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb84ef
)
Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Fri, 3 Dec 2010 01:21:38 +0000
(
01:21
+0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Fri, 3 Dec 2010 01:21:38 +0000
(
01:21
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120777
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Windows/PathV2.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/PathV2.inc
b/lib/Support/Windows/PathV2.inc
index 909deb0418c9e2ad04f040f3fb07c1e421c7f8ce..a93ac224a3d95fc2a75c2c8b1f5ccadc47e4aacf 100644
(file)
--- 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.to
NullTerminated
StringRef(from_storage);
- StringRef t = to.to
NullTerminated
StringRef(to_storage);
+ StringRef f = from.toStringRef(from_storage);
+ StringRef t = to.toStringRef(to_storage);
// Convert to utf-16.
SmallVector<wchar_t, 128> wide_from;