diff --git a/compiler/forget/src/Inference/InferAliasForStores.ts b/compiler/forget/src/Inference/InferAliasForStores.ts index 4e5d4908de..b258303f81 100644 --- a/compiler/forget/src/Inference/InferAliasForStores.ts +++ b/compiler/forget/src/Inference/InferAliasForStores.ts @@ -44,7 +44,8 @@ export function inferAliasForStores( } case "ComputedStore": case "PropertyStore": { - maybeAlias(aliases, value.object, value.value, instr.id); + maybeAlias(aliases, lvalue.place, value.value, instr.id); + maybeAlias(aliases, lvalue.place, value.object, instr.id); break; } case "FunctionExpression": {