dillon1000/react
Commit
Browse files Increase precision in InferMutableRangesForAlias
Previously, this step just set the mutable range of any alias set including any mutation to the end of the last mutable range of any of the containing identifiers. This change makes it so that the ends are only updated of the ranges that end before the last mutation. Fixes #852
Changed paths10 files
First-parent comparisoncompiler/forget/src/HIR/InferMutableRangesForAlias.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/component.expect.md ModifiedA compiler/forget/src/__tests__/fixtures/hir/issue852.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/issue852.js AddedM compiler/forget/src/__tests__/fixtures/hir/ssa-complex-multiple-if.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-complex-single-if.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-simple-phi.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-switch.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/switch-non-final-default.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/switch.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…