[llvm] [WinEH] Emit unreachable on malformed catchpad (PR #222181)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 10:48:32 PDT 2026


================
@@ -921,6 +1039,7 @@ bool WinEHPrepareImpl::cloneCommonBlocks(Function &F) {
   // *and* the new basic blocks themselves.
   for (auto &Funclets : FuncletBlocks) {
     BasicBlock *FuncletPadBB = Funclets.first;
+    Changed |= removeMalformedCatchswitch(FuncletPadBB);
----------------
efriedma-quic wrote:

Can you pass in the FuncletToken instead of the FuncletPadBB?

https://github.com/llvm/llvm-project/pull/222181


More information about the llvm-commits mailing list