diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-16 18:36:31 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-16 18:36:31 +0000 |
| commit | f67d3ff8f330ea2d61d92ef67e0d6e57db17eaeb (patch) | |
| tree | 77fc695d07d495594dc021f05b387c901b074b50 /llvm/lib/Support | |
| parent | 2a2d50b7adfc5d4d460ccd44898e8033702a1710 (diff) | |
| download | bcm5719-llvm-f67d3ff8f330ea2d61d92ef67e0d6e57db17eaeb.tar.gz bcm5719-llvm-f67d3ff8f330ea2d61d92ef67e0d6e57db17eaeb.zip | |
Fix a minor bug in fs::create_directories. Patch by Albert Wong.
llvm-svn: 139928
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/PathV2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp index b7dfe4f9a5f..bebe442e247 100644 --- a/llvm/lib/Support/PathV2.cpp +++ b/llvm/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); } |

