forked from OSchip/llvm-project
Use simpler version of llvm::sys::fs::create_directories.
llvm-svn: 201290
This commit is contained in:
parent
9e7a638be1
commit
ea2519c37b
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue