Skip to content

Commit 3b7b158

Browse files
committed
[Basic] Update for fs::createUniqueFile changes in llvm
https://reviews.llvm.org/D97785 reintroduced a flags parameter to `fs::createUniqueFile`, this time preceding `params`. (Compare: #18472) rdar://76036856
1 parent 135cdc7 commit 3b7b158

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Basic/FileSystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ tryToOpenTemporaryFile(Optional<llvm::raw_fd_ostream> &openedStream,
101101

102102
int fd;
103103
const unsigned perms = fs::all_read | fs::all_write;
104-
std::error_code EC = fs::createUniqueFile(tempPath, fd, tempPath, perms);
104+
std::error_code EC = fs::createUniqueFile(tempPath, fd, tempPath,
105+
fs::OF_None, perms);
105106

106107
if (EC) {
107108
// Ignore the specific error; the caller has to fall back to not using a

0 commit comments

Comments
 (0)