dillon1000/react

Commit

[compiler][hir] Correctly remove non-existent terminal preds when pruning labels

Missed this initially in `pruneUnusedLabelsHIR`. It wasn't an active bug as `preds` wasn't referenced by later passes, until #30079

ghstack-source-id: 3e151b74c31554299e870f001c0ac3f72706318c
Pull Request resolved: https://github.com/facebook/react/pull/30076
Browse files
Changed paths4 files
First-parent comparison
M compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.ts ModifiedR compiler/packages/babel-plugin-react-compiler/src/HIR/AssertTerminalSuccessorsExist.ts →compiler/packages/babel-plugin-react-compiler/src/HIR/AssertTerminalBlocksExist.ts RenamedM compiler/packages/babel-plugin-react-compiler/src/HIR/PruneUnusedLabelsHIR.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/HIR/index.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…