[llvm] r184318 - Another attempt at fixing the bots.

Rafael Espindola rafael.espindola at gmail.com
Wed Jun 19 09:16:13 PDT 2013


Author: rafael
Date: Wed Jun 19 11:16:13 2013
New Revision: 184318

URL: http://llvm.org/viewvc/llvm-project?rev=184318&view=rev
Log:
Another attempt at fixing the bots.

Modified:
    llvm/trunk/tools/llvm-ar/llvm-ar.cpp

Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=184318&r1=184317&r2=184318&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Wed Jun 19 11:16:13 2013
@@ -430,7 +430,7 @@ doExtract(std::string* ErrMsg) {
       // Open up a file stream for writing
       std::ios::openmode io_mode = std::ios::out | std::ios::trunc |
                                    std::ios::binary;
-      std::ofstream file(I->getPath().str(), io_mode);
+      std::ofstream file(I->getPath().str().c_str(), io_mode);
 
       // Get the data and its length
       const char* data = reinterpret_cast<const char*>(I->getData());





More information about the llvm-commits mailing list