summaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-09-16 18:36:31 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-09-16 18:36:31 +0000
commitecc9b5ec23d08a8a967c2c57bd8f32047e195be9 (patch)
treec5822f50e57030f31b2e75d6b868e68bafee81d4 /lib/Support/PathV2.cpp
parent9f4ddb3efa0f76d7c2463648eca9d82403c2e8a3 (diff)
downloadllvm-ecc9b5ec23d08a8a967c2c57bd8f32047e195be9.tar.gz
llvm-ecc9b5ec23d08a8a967c2c57bd8f32047e195be9.tar.bz2
llvm-ecc9b5ec23d08a8a967c2c57bd8f32047e195be9.tar.xz
Fix a minor bug in fs::create_directories. Patch by Albert Wong.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index b7dfe4f9a5..bebe442e24 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -656,7 +656,7 @@ error_code create_directories(const Twine &path, bool &existed) {
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);
}