dillon1000/react
Commit
Browse files [ssa] Fix lookup of global values
Currently, HIR doesn't load global idenfifiers into a temporary Place which means our SSA transform breaks when it tries to lookup this global identifier. Instead of throwing, let's log and return the old place. This works for now but will probably break when we start mutating globals, but at that point our HIR builder will need fixes.
Changed paths5 files
First-parent comparisoncompiler/forget/src/HIR/SSAify.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/ssa-call-jsx.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-call-jsx.js AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-newexpression.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-newexpression.js AddedPatch
Files changed
Rendering syntax-highlighted changes…