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 57587191e1
commit 5b4ee7e91b

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