Skip to content

Commit

Permalink
Use simpler version of fs::create_directory.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201293 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Feb 13, 2014
1 parent bb3fe0b commit 10a3be3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ARCMigrate/FileRemapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 10a3be3

Please sign in to comment.