[PATCH] D103806: [SystemZ][z/OS] Pass OpenFlags when creating tmp files

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 7 09:35:12 PDT 2021


rnk added a comment.

I see, thanks.



================
Comment at: llvm/lib/Support/Path.cpp:1295
   SmallString<128> ResultPath;
-  if (std::error_code EC =
-          createUniqueFile(Model, FD, ResultPath, OF_Delete, Mode))
+  if (std::error_code EC = createUniqueFile(Model, FD, ResultPath, Flags, Mode))
     return errorCodeToError(EC);
----------------
Instead of requiring the caller to add `OF_Delete`, I think it would be better to pass `OF_Delete | Flags` here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103806/new/

https://reviews.llvm.org/D103806



More information about the llvm-commits mailing list