From: Cameron Zwarich Date: Wed, 9 Feb 2011 23:02:14 +0000 (+0000) Subject: Attempt to fix the build after r125228. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0bef1f3d1b64d40f21451ab56cdafe1fa794730d;p=oota-llvm.git Attempt to fix the build after r125228. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125236 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 7fa838b16b7..3a3a438d05b 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/lib/Support/Unix/PathV2.inc @@ -522,13 +522,13 @@ void canonical(const char *path, SmallVectorImpl &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