[compiler] Fix visitors to emit the correct kind
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: https://github.com/facebook/react/pull/29884
J
Joe Savona committed
ca9b6a7ebc75371c82748e057f55403518ebb5b1
Parent: d9a5b63