diff options
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index d549b00..a724ba2 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -1288,11 +1288,12 @@ Error TempFile::keep() { return Error::success(); } -Expected<TempFile> TempFile::create(const Twine &Model, unsigned Mode) { +Expected<TempFile> TempFile::create(const Twine &Model, unsigned Mode, + OpenFlags ExtraFlags) { int FD; SmallString<128> ResultPath; if (std::error_code EC = - createUniqueFile(Model, FD, ResultPath, OF_Delete, Mode)) + createUniqueFile(Model, FD, ResultPath, OF_Delete | ExtraFlags, Mode)) return errorCodeToError(EC); TempFile Ret(ResultPath, FD); |