diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-13 04:08:44 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-13 04:08:44 +0000 |
| commit | bb3fe0be055d3115d525ede82f6e36046a46b148 (patch) | |
| tree | 3a17850d314146ded63fb5bdb86540f6f05f3840 /lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | |
| parent | 584c6304cf0036928b494ea7916f9b41a5d3e3b6 (diff) | |
| download | clang-bb3fe0be055d3115d525ede82f6e36046a46b148.tar.gz clang-bb3fe0be055d3115d525ede82f6e36046a46b148.tar.bz2 clang-bb3fe0be055d3115d525ede82f6e36046a46b148.tar.xz | |
Use simpler version of llvm::sys::fs::create_directories.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
| -rw-r--r-- | lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index 365f6ab70d..c410820139 100644 --- a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -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'; |
