aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/PassManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index cd7138c..e1f8afe 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -665,9 +665,10 @@ void PMDataManager::removeDeadPasses(Pass *P, const char *Msg,
TPM->collectLastUses(DeadPasses, P);
- if (PassDebugging >= Details) {
+ if (PassDebugging >= Details && !DeadPasses.empty()) {
cerr << " -*- " << P->getPassName();
- cerr << " is the last users of following passes. Free them\n";
+ cerr << " is the last user of following pass instances.";
+ cerr << " Free these instances\n";
}
for (SmallVector<Pass *, 12>::iterator I = DeadPasses.begin(),