Skip to content

Commit

Permalink
Emit explicit line position for synthetic unit pointing to if conditi…
Browse files Browse the repository at this point in the history
…on line

[Cherry-picked 4afb8c7]
  • Loading branch information
WojciechMazur committed Jul 9, 2024
1 parent de3ce22 commit 902da78
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
if hasElse then
genLoadTo(elsep, expectedType, dest)
else
lineNumber(tree.cond)
genAdaptAndSendToDest(UNIT, expectedType, dest)
expectedType
end if
Expand Down

0 comments on commit 902da78

Please sign in to comment.