summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/ccc/ccclib/Driver.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/tools/ccc/ccclib/Driver.py b/clang/tools/ccc/ccclib/Driver.py
index 25984dd74e0..e6aba65fc76 100644
--- a/clang/tools/ccc/ccclib/Driver.py
+++ b/clang/tools/ccc/ccclib/Driver.py
@@ -233,9 +233,8 @@ class Driver(object):
self.removeFiles(self.resultFiles, failOnError=True)
raise
finally:
- for f in self.tempFiles:
- # Ignore failures in removing temporary files
- self.removeFiles(self.resultFiles, failOnError=False)
+ # Ignore failures in removing temporary files
+ self.removeFiles(self.tempFiles, failOnError=False)
def removeFiles(self, fileList, failOnError=False):
for f in fileList:
OpenPOWER on IntegriCloud