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

Aaron Danen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 12:47:48 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);
----------------
aadanen wrote:

done

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


More information about the llvm-commits mailing list