Skip to content

Commit

Permalink
[compiler] Fix visitors to emit the correct kind
Browse files Browse the repository at this point in the history
Our passes aren't sequenced such that we could observe this bug, but this retains the proper terminal kind for pruned-scopes in mapTerminalSuccessors.

[ghstack-poisoned]
  • Loading branch information
josephsavona committed Jun 12, 2024
1 parent 814a418 commit 11be96a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ export function mapTerminalSuccessors(
const block = fn(terminal.block);
const fallthrough = fn(terminal.fallthrough);
return {
kind: "scope",
kind: terminal.kind,
scope: terminal.scope,
block,
fallthrough,
Expand Down

0 comments on commit 11be96a

Please sign in to comment.