[llvm-commits] [llvm] r125236 - /llvm/trunk/lib/Support/Unix/PathV2.inc

Cameron Zwarich zwarich at apple.com
Wed Feb 9 15:02:15 PST 2011


Author: zwarich
Date: Wed Feb  9 17:02:14 2011
New Revision: 125236

URL: http://llvm.org/viewvc/llvm-project?rev=125236&view=rev
Log:
Attempt to fix the build after r125228.

Modified:
    llvm/trunk/lib/Support/Unix/PathV2.inc

Modified: llvm/trunk/lib/Support/Unix/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=125236&r1=125235&r2=125236&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Unix/PathV2.inc Wed Feb  9 17:02:14 2011
@@ -522,13 +522,13 @@
     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





More information about the llvm-commits mailing list