diff options
| -rw-r--r-- | llvm/test/Regression/CBackend/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Regression/CBackend/Makefile b/llvm/test/Regression/CBackend/Makefile index 7e5ba7ddefb..1ad566c63c8 100644 --- a/llvm/test/Regression/CBackend/Makefile +++ b/llvm/test/Regression/CBackend/Makefile @@ -19,4 +19,5 @@ Output/%.to: Output/%.c (rm -f $@; $(FAILURE) $@ ) Output/%.c: %.ll Output/.dir $(LAS) $(LDIS) - $(LAS) < $< | $(LDIS) -c > $@ + $(LAS) < $< | $(LDIS) -c > $@ || \ + (rm -f $@; $(FAILURE) $@ ) |

