Debug info tried to be emitted for unreachable code #22852
Labels
A-codegen
Area: Code generation
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
This code causes an ICE:
complaining that the the
test
variable isn't an alloca. This is true, since we don't output any LLVM IR for unreachable code, which is everything after thereturn
. For some reason, this only happens withif
expressions (or at least, it doesn't happen with plain expressions or ordinary blocks) on the RHS.The text was updated successfully, but these errors were encountered: