Attempt to fix the build after r125228.
authorCameron Zwarich <zwarich@apple.com>
Wed, 9 Feb 2011 23:02:14 +0000 (23:02 +0000)
committerCameron Zwarich <zwarich@apple.com>
Wed, 9 Feb 2011 23:02:14 +0000 (23:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125236 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/PathV2.inc

index 7fa838b16b7d193f6fa90d6ba7ae0ccd29d0a496..3a3a438d05b9c84f806e3f9f5b61a5112431fef1 100644 (file)
@@ -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