diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-13 01:21:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-13 01:21:31 +0000 |
commit | c2f12ab5e5258a949c0cfff074bf57fe0c08d4e5 (patch) | |
tree | 82ff6bc6dc624eb6fd7d55449c89e67aa838a181 /lib/VMCore/PassManager.cpp | |
parent | 0ecd4c1a55a7428d2ad2f6dfd0c952c080c7ae0a (diff) |
Change PMStack::push to accept a PMDataManager* instead of
a Pass*. PMDataManager* is what it actually holds, so this
makes it clearer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index bef1171bd0..275e0aea3f 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -1395,10 +1395,9 @@ void PMStack::pop() { } // Push PM on the stack and set its top level manager. -void PMStack::push(Pass *P) { +void PMStack::push(PMDataManager *PM) { PMDataManager *Top = NULL; - PMDataManager *PM = dynamic_cast<PMDataManager *>(P); assert (PM && "Unable to push. Pass Manager expected"); if (this->empty()) { |