Following up on commit177176f75c, if we failed to setDeleteDisposition(true) during TempFile creation, then don't try to setDeleteDisposition(false) during TempFile::keep, since it will likely fail as well. Instead of letting TempFile::keep just fail, we should let it go ahead and try renaming the file. This fixes an issue we are seeing when running clang-cl.exe through the Incredibuild distributed build system. We're seeing that renaming temporary object files would fail here:5c1f7b296a/clang/lib/Frontend/CompilerInstance.cpp (L789)Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D118212
39 KiB
39 KiB