Quick fix to make LIT_PRESERVES_TMP work again

llvm-svn: 280502
This commit is contained in:
Reid Kleckner 2016-09-02 16:33:15 +00:00
parent 8663b44318
commit 30e2067e3e
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,8 @@ def main(builtinParameters = {}):
try:
main_with_tmp(builtinParameters)
finally:
shutil.rmtree(lit_tmp)
if lit_tmp:
shutil.rmtree(lit_tmp)
def main_with_tmp(builtinParameters):
global options