Fix a minor bug in fs::create_directories. Patch by Albert Wong.

llvm-svn: 139928
This commit is contained in:
Eli Friedman 2011-09-16 18:36:31 +00:00
parent 2a2d50b7ad
commit f67d3ff8f3
1 changed files with 1 additions and 1 deletions

View File

@ -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 (error_code ec = fs::exists(parent, parent_exists)) return ec;
if (!parent_exists) if (!parent_exists)
return create_directories(parent, existed); if (error_code ec = create_directories(parent, existed)) return ec;
return create_directory(p, existed); return create_directory(p, existed);
} }