<div dir="ltr">Hi,<div><br></div><div>I am trying to call LowerSwitchPass directly in my custom pass in this way:</div><div><br></div><div><br></div>  FunctionPass *lower = createLowerSwitchPass();<br>  lower->runOnFunction(*f);<div><br></div><div>But it will crash when running lower->runOnFunction(*f) in llvm-9. <br>I was using this method in llvm-8 and it worked fine. It seems the crash happens at the first line of the LowerSwitch::runOnFunction(Function &F) in the newer llvm:</div><div><br></div>





LazyValueInfo *LVI = &getAnalysis<LazyValueInfoWrapperPass>().getLVI();  //crashed here<div><br></div><div>I can't figure out why this usage cause the compiler to crash? Am I calling function pass wrong?</div><div><br></div><div>Thank you for your help.</div></div>