Files
llvm-project/llvm/lib/CodeGen/Analysis.cpp
David Green 85c3c83ae5 [SEH] Ensure unreachable blocks are placed in EHScopeMembership (#175550)
The tests function has an unreachable block bb.2 leading to an
unreachable infinite loop bb.3. As BlockFolding removes the unreachable
bb.2, bb.3 is left only referencing itself. This block is then not
marked as unreachable and so left out of EHScopeMembership, leading to
an assert that FallThroughEHScope != EHScopeMembership.end(). This patch
makes sure that blocks not otherwise collected are added to
EHScopeMembership in the same way as unreachable blocks.
2026-01-13 09:09:53 +00:00

33 KiB