[clang] [clang][CodeGen] Fix crash on if/switch init-statement ending in noreturn (PR #201047)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 02:13:59 PDT 2026
lijinpei-amd wrote:
Cc @efriedma-quic @rjmccall — could you take a look when you get a chance?
Small CodeGen crash-fix for #115514: an if/switch init-statement that ends in a noreturn call leaves CodeGen without an insertion point, and the condition emitted next assumes a valid one, producing instructions that aren't embedded in a basic block (verifier crash / broken module).
Thanks!
https://github.com/llvm/llvm-project/pull/201047
More information about the cfe-commits
mailing list