[llvm-commits] [llvm] r101785 - /llvm/trunk/lib/System/Unix/Path.inc

Dan Gohman gohman at apple.com
Mon Apr 19 09:33:29 PDT 2010


Author: djg
Date: Mon Apr 19 11:33:28 2010
New Revision: 101785

URL: http://llvm.org/viewvc/llvm-project?rev=101785&view=rev
Log:
Fix this for std::vectors which don't have .data().

Modified:
    llvm/trunk/lib/System/Unix/Path.inc

Modified: llvm/trunk/lib/System/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Path.inc?rev=101785&r1=101784&r2=101785&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Path.inc (original)
+++ llvm/trunk/lib/System/Unix/Path.inc Mon Apr 19 11:33:28 2010
@@ -863,7 +863,7 @@
   // libSupport. And performance isn't critical here.
   std::vector<char> Buf;
   Buf.resize(path.size()+8);
-  char *FNBuffer = Buf.data();
+  char *FNBuffer = &Buf[0];
     path.copy(FNBuffer,path.size());
   if (isDirectory())
     strcpy(FNBuffer+path.size(), "/XXXXXX");





More information about the llvm-commits mailing list