[llvm] r280502 - Quick fix to make LIT_PRESERVES_TMP work again
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 2 09:33:15 PDT 2016
Author: rnk
Date: Fri Sep 2 11:33:15 2016
New Revision: 280502
URL: http://llvm.org/viewvc/llvm-project?rev=280502&view=rev
Log:
Quick fix to make LIT_PRESERVES_TMP work again
Modified:
llvm/trunk/utils/lit/lit/main.py
Modified: llvm/trunk/utils/lit/lit/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=280502&r1=280501&r2=280502&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/main.py (original)
+++ llvm/trunk/utils/lit/lit/main.py Fri Sep 2 11:33:15 2016
@@ -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
More information about the llvm-commits
mailing list