[Support] [Windows] Use RemoveFileOnSignal if unable to use the delete-on-close flag
authorMartin Storsjö <martin@martin.st>
Thu, 28 Oct 2021 07:57:27 +0000 (10:57 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 3 Nov 2021 19:29:37 +0000 (21:29 +0200)
commita39eba720744e6936cbf4ea6cc0a7fb1d7527e57
treede78f343d5d3088346fdd4ce9ec876af3c82c6e6
parent7ff943a9ed878e3b8ffe162b2af41a81da1a11a2
[Support] [Windows] Use RemoveFileOnSignal if unable to use the delete-on-close flag

This takes care of cleaning up the temp files on crashes. It doesn't
handle cleanup when explicitly killed though.

Differential Revision: https://reviews.llvm.org/D112710
llvm/lib/Support/Path.cpp