Skip to content

Commit

Permalink
Merge pull request #298 from mairooni/fix/codegen
Browse files Browse the repository at this point in the history
[fix] Fix codegen to not generate wrong close curly bracket
  • Loading branch information
jjfumero authored Dec 18, 2023
2 parents 11b6e71 + ca7e8b1 commit 6223dc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private void closeBranchBlock(HIRBlock block) {
closeIfBlock(block, dom);
} else if (isSwitchBlockNode(block)) {
closeSwitchBlock(block, dom);
} else if (isNestedIfNode(block) && (!isStartNode(block))) {
} else if (isNestedIfNode(block) && (!isStartNode(block) && (!isMergeBlock(block)))) {
closeBlock(block);
} else if (isReturnBranchWithMerge(dom, block)) {
closeBlock(block);
Expand Down

0 comments on commit 6223dc7

Please sign in to comment.