[hir][be] Remove unused param
Sathya Gunasekaran committed
Oct 27, 2022 at 14:11 UTC
588a0981494a0725ec653a8e80d2ee7242679040
1 file changed
+2
-7
compiler/forget/src/HIR/InferReferenceEffects.ts
+2
-7
@@ -13,7 +13,6 @@ import {
13
Effect,
14
HIRFunction,
15
IdentifierId,
16
- Instruction,
16
InstructionValue,
17
Place,
18
Terminal,
@@ -174,11 +173,7 @@ class Environment {
173
/**
174
* (Re)initializes a @param value with its default @param kind.
175
*/
177
- initialize(
178
- value: InstructionValue,
179
- kind: ValueKind,
180
- instr: Instruction | null = null
181
- ) {
176
+ initialize(value: InstructionValue, kind: ValueKind) {
177
invariant(
178
value.kind !== "Identifier" || value.memberPath !== null,
179
"Expected all top-level identifiers to be defined as variables, not values"
@@ -590,7 +585,7 @@ function inferBlock(env: Environment, block: BasicBlock) {
585
assertExhaustive(instrValue, "Unexpected instruction kind");
586
}
587
}
593
- env.initialize(instrValue, valueKind, instr);
588
+ env.initialize(instrValue, valueKind);
589
if (instr.lvalue !== null) {
590
if (instr.lvalue.place.memberPath === null) {
591
env.define(instr.lvalue.place, instrValue);