aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 20:51:54 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 20:51:54 +0000
commitd27047f87dae7c6eb59069b1e5d1368a0b2db5ff (patch)
treef733f3acf81017ebae48a799470f7a369b715877 /tools/bugpoint
parent8983846e6934fc52b9f2894fc95e68cbd1f56187 (diff)
downloadexternal_llvm-d27047f87dae7c6eb59069b1e5d1368a0b2db5ff.zip
external_llvm-d27047f87dae7c6eb59069b1e5d1368a0b2db5ff.tar.gz
external_llvm-d27047f87dae7c6eb59069b1e5d1368a0b2db5ff.tar.bz2
Eliminate some unnessary Path::exists() calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index eaa2c53..7808de5 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -365,8 +365,7 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
PI.push_back(getPI(createBlockExtractorPass(EmptyBBs)));
Module *Ret = runPassesOn(M, PI, false, 1, &ExtraArg);
- if (uniqueFilename.exists())
- uniqueFilename.eraseFromDisk(); // Free disk space
+ uniqueFilename.eraseFromDisk(); // Free disk space
if (Ret == 0) {
outs() << "*** Basic Block extraction failed, please report a bug!\n";