make else if conditions contain debug stmt info #11160
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Zig version:
0.10.0-dev.1311+5ea94e771
Here you can see in a debugging session, the debugger regrettably steps over the
x / 2 == 0
expression:This is because we do not emit a
dbg_stmt
for it in the ZIR:If you ctrl+f to highlight
dbg_stmt
you can see that one is missing from theelse if
branch, just before the condition.The text was updated successfully, but these errors were encountered: