<div dir="ltr">My pass crashes on the callsite of runOnFunction() as it calls GetAnalysis to LazyValue internally.<br><br>FunctionPass* lower = createLowerSwitchPass();<br>lower->runOnFunction(F);<br><br>The crash log says: <i>Assertion failed: (Resolver && "Pass has not been inserted into a PassManager object!")</i><div><i><br></i></div><div>How do I get the PassManager object to add LowerSwitchPass? I can't happen to find the object anywhere. Can the legacy pass manager run lower passes in llvm14? Alternatively, is there another method I can use to create LowerSwitchPass with the new PassManager?</div></div>