[LLVMdev] problem loading analysis results from Inliner pass

Chris Lattner sabre at nondot.org
Tue Mar 21 23:29:25 PST 2006


On Tue, 21 Mar 2006, Michael McCracken wrote:
> opt: /home/mmccrack/lens/obj-llvm-darcslocal/../llvm-darcslocal/llvm/lib/VMCore/PassManagerT.h:426:
> void llvm::PassManagerT<UnitType>::markPassUsed(const llvm::PassInfo*,
> llvm::Pass*) [with UnitType = llvm::Module]: Assertion
> `getAnalysisOrNullUp(P) &&
> dynamic_cast<ImmutablePass*>(getAnalysisOrNullUp(P)) && "Pass
> available but not found! " "Perhaps this is a module pass requiring a
> function pass?"' failed.
>
> Which is also unexpected. I think for now I will attempt to make my
> pass work as Immutable, but I'm still curious why having both be a
> ModulePass gets this error, where both as an ImmutablePass is OK for
> the PassManager and one of each is also OK. Strange, but maybe I'm
> missing something.

It is hard for me to say without more information.  Make sure you don't 
have an immutable pass requiring a modulepass or something like that.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-dev mailing list