summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-01-16 22:38:10 +0000
committerDevang Patel <dpatel@apple.com>2007-01-16 22:38:10 +0000
commitd85662f67de42d8024bb8579066d105f5c970d6a (patch)
treea7135541cd5822afe74e1088fb6b772e7de60695 /llvm/lib
parent4eac5b315db36b51aa5951b70957015c69708a40 (diff)
downloadbcm5719-llvm-d85662f67de42d8024bb8579066d105f5c970d6a.tar.gz
bcm5719-llvm-d85662f67de42d8024bb8579066d105f5c970d6a.zip
Pass manager may require certain analysis. In such cases, initially
pass manager is last user. llvm-svn: 33273
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/PassManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp
index 1e3b48ee686..6f0c4527be3 100644
--- a/llvm/lib/VMCore/PassManager.cpp
+++ b/llvm/lib/VMCore/PassManager.cpp
@@ -600,10 +600,9 @@ void PMDataManager::add(Pass *P,
// Set P as P's last user until someone starts using P.
// However, if P is a Pass Manager then it does not need
// to record its last user.
- if (!dynamic_cast<PMDataManager *>(P)) {
+ if (!dynamic_cast<PMDataManager *>(P))
LastUses.push_back(P);
- TPM->setLastUser(LastUses, P);
- }
+ TPM->setLastUser(LastUses, P);
// Take a note of analysis required and made available by this pass.
// Remove the analysis not preserved by this pass
OpenPOWER on IntegriCloud