Skip to content

Commit

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

Expand Down

0 comments on commit bb3fe0b

Please sign in to comment.