r201290 - Use simpler version of llvm::sys::fs::create_directories.
Rafael Espindola
rafael.espindola at gmail.com
Wed Feb 12 20:08:44 PST 2014
Author: rafael
Date: Wed Feb 12 22:08:44 2014
New Revision: 201290
URL: http://llvm.org/viewvc/llvm-project?rev=201290&view=rev
Log:
Use simpler version of llvm::sys::fs::create_directories.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp?rev=201290&r1=201289&r2=201290&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp Wed Feb 12 22:08:44 2014
@@ -99,9 +99,7 @@ void HTMLDiagnostics::ReportDiag(const P
// 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';
More information about the cfe-commits
mailing list