Fix problem with inserting FunctionPasses that depend on ImmutablePasses
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 23 Jul 2004 19:35:50 +0000 (19:35 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 23 Jul 2004 19:35:50 +0000 (19:35 +0000)
commit7ff4006f82e0ff65d1ab43c8a50a38da2860cfac
treee0741ec95ee27c0bb84e24e20f04ed879768f415
parentaa14147cd6401e9c66dc9f81d1a47a90a5477159
Fix problem with inserting FunctionPasses that depend on ImmutablePasses
(e.g., LICM) into FunctionPassManagers. The problem is that we were
using a C-style cast to cast required analysis passes to PassClass*, but
if it's a FunctionPassManager, and the required analysis pass is an
ImmutablePass, the types aren't really compatible, so the C-style cast
causes a crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15140 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/PassManagerT.h