[llvm-commits] [llvm] r139928 - /llvm/trunk/lib/Support/PathV2.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Sep 16 11:36:31 PDT 2011
Author: efriedma
Date: Fri Sep 16 13:36:31 2011
New Revision: 139928
URL: http://llvm.org/viewvc/llvm-project?rev=139928&view=rev
Log:
Fix a minor bug in fs::create_directories. Patch by Albert Wong.
Modified:
llvm/trunk/lib/Support/PathV2.cpp
Modified: llvm/trunk/lib/Support/PathV2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PathV2.cpp?rev=139928&r1=139927&r2=139928&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PathV2.cpp (original)
+++ llvm/trunk/lib/Support/PathV2.cpp Fri Sep 16 13:36:31 2011
@@ -656,7 +656,7 @@
if (error_code ec = fs::exists(parent, parent_exists)) return ec;
if (!parent_exists)
- return create_directories(parent, existed);
+ if (error_code ec = create_directories(parent, existed)) return ec;
return create_directory(p, existed);
}
More information about the llvm-commits
mailing list