summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitf73f5ba21cf7bdd09f13d8d02c8bb80895c59e5d (patch)
tree2005ef38dfe620f237f83fba94984df568394eff /llvm/lib
parent0bc2855aa9ac47324e577f48ad8c310f98998aa7 (diff)
downloadbcm5719-llvm-f73f5ba21cf7bdd09f13d8d02c8bb80895c59e5d.tar.gz
bcm5719-llvm-f73f5ba21cf7bdd09f13d8d02c8bb80895c59e5d.zip
Attempt to fix the build after r125228.
llvm-svn: 125236
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Unix/PathV2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc
index 7fa838b16b7..3a3a438d05b 100644
--- a/llvm/lib/Support/Unix/PathV2.inc
+++ b/llvm/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
OpenPOWER on IntegriCloud