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
  • Loading branch information
WojciechMazur committed May 17, 2024
1 parent 4d8bf77 commit 4afb8c7
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 4afb8c7

Please # to comment.