https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111822
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- The easiest fix would be to refuse applying STV to a insn that can_throw_internal () (that's an insn that has associated EH info). Updating in this case would require splitting the BB or at least moving the now no longer throwing insn to the next block (along the fallthru edge).