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-source-id: 1a03b40e45649bbef7d6db968fb2dbd6261a246a
Pull Request resolved: #29884
  • Loading branch information
josephsavona committed Jun 13, 2024
1 parent d9a5b63 commit ca9b6a7
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 ca9b6a7

Please sign in to comment.