-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
make else if conditions contain debug stmt info #11160
Copy link
Copy link
Closed
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Zig version:
0.10.0-dev.1311+5ea94e771Here you can see in a debugging session, the debugger regrettably steps over the
x / 2 == 0expression:This is because we do not emit a
dbg_stmtfor it in the ZIR:If you ctrl+f to highlight
dbg_stmtyou can see that one is missing from theelse ifbranch, just before the condition.