mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 02:17:41 +00:00
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
This commit is contained in:
parent
9f4ddb3efa
commit
ecc9b5ec23
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user