Skip to content

LLVM: Make illegal branch actually branch to unreachable in the LLVM backend

During code generation for a CmmSwitch, if we do not have a default branch to take (switchTargetsDefault = Nothing), generate the "morally correct" LLVM IR code, where by default we branch to an unreachable basic block.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information