diff options
-rw-r--r-- | include/llvm/Pass.h | 2 | ||||
-rw-r--r-- | lib/VMCore/PassManager.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 955d9a009c..896839effc 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -387,7 +387,7 @@ public: void pop(); inline PMDataManager *top() { return S.back(); } - void push(Pass *P); + void push(PMDataManager *PM); inline bool empty() { return S.empty(); } void dump(); 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()) { |