dillon1000/react
Commit
Browse files Fix PruneMaybeThrows to update phi operand predecessor ids
When PruneMaybeThrows removes maybe-throw terminals, it's possible that the block in question reassigned a value s.t. it appears as a later phi operand. That phi has to be rewritten to reflect the updated predecessor block. Here we track these rewrites (transitively) and rewrite phi operands accordingly.
Changed paths4 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Optimization/PruneMaybeThrows.ts ModifiedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.repro-preds-undefined.js DeletedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-preds-undefined-try-catch-return-primitive.expect.md AddedR compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.repro-preds-undefined.expect.md →compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-preds-undefined-try-catch-return-primitive.js RenamedPatch
Files changed
Rendering syntax-highlighted changes…