[compiler][ez] Remove unused param (#31376)

This commit is contained in:
Sathya Gunasekaran 2024-10-28 15:08:27 +00:00 committed by GitHub
parent aded0ef831
commit 02c0e824e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,6 @@
import {isValidIdentifier} from '@babel/types'; import {isValidIdentifier} from '@babel/types';
import {CompilerError} from '../CompilerError'; import {CompilerError} from '../CompilerError';
import { import {
Environment,
GotoVariant, GotoVariant,
HIRFunction, HIRFunction,
IdentifierId, IdentifierId,
@ -130,7 +129,7 @@ function applyConstantPropagation(
continue; continue;
} }
const instr = block.instructions[i]!; const instr = block.instructions[i]!;
const value = evaluateInstruction(fn.env, constants, instr); const value = evaluateInstruction(constants, instr);
if (value !== null) { if (value !== null) {
constants.set(instr.lvalue.identifier.id, value); constants.set(instr.lvalue.identifier.id, value);
} }
@ -223,7 +222,6 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null {
} }
function evaluateInstruction( function evaluateInstruction(
env: Environment,
constants: Constants, constants: Constants,
instr: Instruction, instr: Instruction,
): Constant | null { ): Constant | null {