[PATCH] D111875: [Support] [Windows] Manually clean up temp files on network shares

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 27 14:20:11 PDT 2021


mstorsjo updated this revision to Diff 382792.
mstorsjo added a comment.

Don't check the exact error code from `setDeleteDisposition`, just proceed with the alternative codepath if it failed, for whatever reason. This fixes creating temp files on a ram disk (which errors out from `realPathFromHandle` in `setDeleteDisposition`).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111875

Files:
  llvm/include/llvm/Support/FileSystem.h
  llvm/lib/Support/Path.cpp
  llvm/lib/Support/Windows/Path.inc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111875.382792.patch
Type: text/x-patch
Size: 4403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211027/8a68f52f/attachment.bin>


More information about the llvm-commits mailing list