diff options
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index b21846c5483..535ff00bae0 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -751,12 +751,12 @@ error_code make_absolute(SmallVectorImpl<char> &path) { "occurred above!"); } -error_code create_directories(const Twine &Path, bool &Existed) { +error_code create_directories(const Twine &Path, bool IgnoreExisting) { SmallString<128> PathStorage; StringRef P = Path.toStringRef(PathStorage); // Be optimistic and try to create the directory - error_code EC = create_directory(P, Existed); + error_code EC = create_directory(P, IgnoreExisting); // If we succeeded, or had any error other than the parent not existing, just // return it. if (EC != errc::no_such_file_or_directory) @@ -771,7 +771,7 @@ error_code create_directories(const Twine &Path, bool &Existed) { if ((EC = create_directories(Parent))) return EC; - return create_directory(P, Existed); + return create_directory(P, IgnoreExisting); } bool exists(file_status status) { |