r201293 - Use simpler version of fs::create_directory.

Rafael Espindola rafael.espindola at gmail.com
Wed Feb 12 20:22:55 PST 2014


Author: rafael
Date: Wed Feb 12 22:22:54 2014
New Revision: 201293

URL: http://llvm.org/viewvc/llvm-project?rev=201293&view=rev
Log:
Use simpler version of fs::create_directory.

Modified:
    cfe/trunk/lib/ARCMigrate/FileRemapper.cpp

Modified: cfe/trunk/lib/ARCMigrate/FileRemapper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/FileRemapper.cpp?rev=201293&r1=201292&r2=201293&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/FileRemapper.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/FileRemapper.cpp Wed Feb 12 22:22:54 2014
@@ -111,8 +111,7 @@ bool FileRemapper::initFromFile(StringRe
 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) {
   using namespace llvm::sys;
 
-  bool existed;
-  if (fs::create_directory(outputDir, existed) != llvm::errc::success)
+  if (fs::create_directory(outputDir) != llvm::errc::success)
     return report("Could not create directory: " + outputDir, Diag);
 
   std::string infoFile = getRemapInfoFile(outputDir);





More information about the cfe-commits mailing list