[Wasm] Remove unnecessary location from WasmDataMode constructor

This commit is contained in:
Zalim Bashorov
2023-01-16 22:20:39 +01:00
parent 2fa2725012
commit 9e4b2b78e6
@@ -65,8 +65,8 @@ sealed class WasmDataMode {
val memoryIdx: Int,
val offset: MutableList<WasmInstr>
) : WasmDataMode() {
constructor(memoryIdx: Int, offset: Int, location: SourceLocation) : this(memoryIdx, mutableListOf<WasmInstr>().also<MutableList<WasmInstr>> {
WasmIrExpressionBuilder(it).buildConstI32(offset, location)
constructor(memoryIdx: Int, offset: Int) : this(memoryIdx, mutableListOf<WasmInstr>().also<MutableList<WasmInstr>> {
WasmIrExpressionBuilder(it).buildConstI32(offset, SourceLocation.NoLocation("Offset value for WasmDataMode.Active "))
})
}