X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FPassManager.cpp;h=e1f8afe3b0ea069f77589a5e26e8ac05ab080731;hb=56867520990a4fea1353d55f71bb74a0126554e6;hp=cd7138cad13194154fa14527fd1116da8097907e;hpb=7c9b65207e5bae26bcb4bcd62b50d7f72cb010bb;p=oota-llvm.git diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index cd7138cad13..e1f8afe3b0e 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::iterator I = DeadPasses.begin(),