When using -MF file.d on the command line, file.d would not be deleted after a compiler crash.
Previously, the code path below had no effect, because TCArgs was already created after the crash, thus changes to TranslatedArgs would have no effect.
This was covered by clang/test/Driver/output-file-cleanup.c, the test was succeeding by fluke because Driver::generateCompilationDiagnostics() would fail to launch the subsequent clang -E (see D74070 for a fix for this). So the test was only covering code in Driver.cpp, L1492 and L1496 (C.CleanupFileMap). After this patch, both cleanup and removal of -MF are exercised.
This patch is point 2. in D73742