[llvm-branch-commits] [llvm] release/22.x: [CoroSplit] Never collect allocas used by catchpad into frame (PR #194531)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Apr 30 00:45:47 PDT 2026
================
@@ -4911,6 +4911,13 @@ void Verifier::visitCatchPadInst(CatchPadInst &CPI) {
Check(&*BB->getFirstNonPHIIt() == &CPI,
"CatchPadInst not the first non-PHI instruction in the block.", &CPI);
+ Check(llvm::all_of(CPI.arg_operands(),
+ [](Use &U) {
+ auto *V = U.get();
+ return isa<Constant>(V) || isa<AllocaInst>(V);
+ }),
+ "Argument operand must be alloca or constant.", &CPI);
----------------
nikic wrote:
I'm concerned about backporting changed to the IR verifier.
https://github.com/llvm/llvm-project/pull/194531
More information about the llvm-branch-commits
mailing list