[compiler] Handle earlier creation of early return on scopes
I'm experimenting with a new pass that sometimes creates scopes with early returns earlier in the pipeline, but there are a few passes that assume that can't happen. This PR is updating those passes just to be more resilient to help unblock experimentation. ghstack-source-id: a9e348181ddad1a1e936ef023b5d5ee44aaf3d8c Pull Request resolved: https://github.com/facebook/react/pull/30333
J
Joe Savona committed
fee423e083eccc19d69ecc3db4483c6740db7a75
Parent: 2683c0a