[Wasm] Remove unnecessary location from WasmDataMode constructor
This commit is contained in:
@@ -65,8 +65,8 @@ sealed class WasmDataMode {
|
|||||||
val memoryIdx: Int,
|
val memoryIdx: Int,
|
||||||
val offset: MutableList<WasmInstr>
|
val offset: MutableList<WasmInstr>
|
||||||
) : WasmDataMode() {
|
) : WasmDataMode() {
|
||||||
constructor(memoryIdx: Int, offset: Int, location: SourceLocation) : this(memoryIdx, mutableListOf<WasmInstr>().also<MutableList<WasmInstr>> {
|
constructor(memoryIdx: Int, offset: Int) : this(memoryIdx, mutableListOf<WasmInstr>().also<MutableList<WasmInstr>> {
|
||||||
WasmIrExpressionBuilder(it).buildConstI32(offset, location)
|
WasmIrExpressionBuilder(it).buildConstI32(offset, SourceLocation.NoLocation("Offset value for WasmDataMode.Active "))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user