From 10a3be3af9dcbc2ca503d0c6ed7f3a61e73f2575 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 13 Feb 2014 04:22:54 +0000 Subject: [PATCH] Use simpler version of fs::create_directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201293 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ARCMigrate/FileRemapper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ARCMigrate/FileRemapper.cpp b/lib/ARCMigrate/FileRemapper.cpp index 88e54ff89dfc..cabea6031c6b 100644 --- a/lib/ARCMigrate/FileRemapper.cpp +++ b/lib/ARCMigrate/FileRemapper.cpp @@ -111,8 +111,7 @@ bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, 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);