From 588a0981494a0725ec653a8e80d2ee7242679040 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Thu, 27 Oct 2022 14:11:16 +0100 Subject: [PATCH] [hir][be] Remove unused param --- compiler/forget/src/HIR/InferReferenceEffects.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/compiler/forget/src/HIR/InferReferenceEffects.ts b/compiler/forget/src/HIR/InferReferenceEffects.ts index f9c0e37dae..a7e4ae1c5b 100644 --- a/compiler/forget/src/HIR/InferReferenceEffects.ts +++ b/compiler/forget/src/HIR/InferReferenceEffects.ts @@ -13,7 +13,6 @@ import { Effect, HIRFunction, IdentifierId, - Instruction, InstructionValue, Place, Terminal, @@ -174,11 +173,7 @@ class Environment { /** * (Re)initializes a @param value with its default @param kind. */ - initialize( - value: InstructionValue, - kind: ValueKind, - instr: Instruction | null = null - ) { + initialize(value: InstructionValue, kind: ValueKind) { invariant( value.kind !== "Identifier" || value.memberPath !== null, "Expected all top-level identifiers to be defined as variables, not values" @@ -590,7 +585,7 @@ function inferBlock(env: Environment, block: BasicBlock) { assertExhaustive(instrValue, "Unexpected instruction kind"); } } - env.initialize(instrValue, valueKind, instr); + env.initialize(instrValue, valueKind); if (instr.lvalue !== null) { if (instr.lvalue.place.memberPath === null) { env.define(instr.lvalue.place, instrValue);