aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-02-09 23:02:14 +0000
committerCameron Zwarich <zwarich@apple.com>2011-02-09 23:02:14 +0000
commit0bef1f3d1b64d40f21451ab56cdafe1fa794730d (patch)
treed6aa6d2dd5356c504e4b5d04fbd1008458780471 /lib/Support
parent35edc42f9830af1a6ebf215d7635b04547e8e624 (diff)
downloadexternal_llvm-0bef1f3d1b64d40f21451ab56cdafe1fa794730d.zip
external_llvm-0bef1f3d1b64d40f21451ab56cdafe1fa794730d.tar.gz
external_llvm-0bef1f3d1b64d40f21451ab56cdafe1fa794730d.tar.bz2
Attempt to fix the build after r125228.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Unix/PathV2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc
index 7fa838b..3a3a438 100644
--- a/lib/Support/Unix/PathV2.inc
+++ b/lib/Support/Unix/PathV2.inc
@@ -522,13 +522,13 @@ void canonical(const char *path, SmallVectorImpl<char> &buffer) {
buffer.resize(length);
memcpy(buffer.data(), result, length);
free(result);
- return buffer.data();
+ return;
}
size_t length = strlen(path);
buffer.resize(length);
memcpy(buffer.data(), path, length);
- return path;
+ return;
}
} // end namespace path