mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-29 16:23:44 +00:00
llvm-mc: Delete output files on error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
96e2cec9c7
commit
4ca906560a
@ -311,6 +311,10 @@ static int AssembleInput(const char *ProgName) {
|
||||
if (Out != &fouts())
|
||||
delete Out;
|
||||
|
||||
// Delete output on errors.
|
||||
if (Res && OutputFilename != "-")
|
||||
sys::Path(OutputFilename).eraseFromDisk();
|
||||
|
||||
return Res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user