Use simpler version of llvm::sys::fs::create_directories.

llvm-svn: 201290
This commit is contained in:
Rafael Espindola 2014-02-13 04:08:44 +00:00
parent 9e7a638be1
commit ea2519c37b
1 changed files with 1 additions and 3 deletions

View File

@ -99,9 +99,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D,
// Create the HTML directory if it is missing.
if (!createdDir) {
createdDir = true;
bool existed;
if (llvm::error_code ec =
llvm::sys::fs::create_directories(Directory, existed)) {
if (llvm::error_code ec = llvm::sys::fs::create_directories(Directory)) {
llvm::errs() << "warning: could not create directory '"
<< Directory << "': " << ec.message() << '\n';