From 4e07b8a869aa9910b2128caf5a5b5bb338de3651 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Tue, 7 Feb 2023 16:59:35 +0000 Subject: [PATCH] [hir] Do not alias Identifier as Store Identifiers are never stored (Effect.Store), they are always mutated (Effect.Mutate) and aliased in the InferAlias pass. --- compiler/forget/src/Inference/InferAliasForStores.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/forget/src/Inference/InferAliasForStores.ts b/compiler/forget/src/Inference/InferAliasForStores.ts index c54448d556..9572da76a0 100644 --- a/compiler/forget/src/Inference/InferAliasForStores.ts +++ b/compiler/forget/src/Inference/InferAliasForStores.ts @@ -25,7 +25,6 @@ export function inferAliasForStores( continue; } switch (value.kind) { - case "Identifier": case "ArrayExpression": case "ObjectExpression": case "ComputedStore":