[Wasm] Require location for buildCallIndirect

This commit is contained in:
Zalim Bashorov
2022-12-09 20:03:18 +01:00
parent e5e786c265
commit 9e86ac071d
@@ -119,9 +119,11 @@ abstract class WasmExpressionBuilder {
fun buildCallIndirect( fun buildCallIndirect(
symbol: WasmSymbol<WasmFunctionType>, symbol: WasmSymbol<WasmFunctionType>,
tableIdx: WasmSymbolReadOnly<Int> = WasmSymbol(0), tableIdx: WasmSymbolReadOnly<Int> = WasmSymbol(0),
location: SourceLocation
) { ) {
buildInstr( buildInstr(
WasmOp.CALL_INDIRECT, WasmOp.CALL_INDIRECT,
location,
WasmImmediate.TypeIdx(symbol), WasmImmediate.TypeIdx(symbol),
WasmImmediate.TableIdx(tableIdx) WasmImmediate.TableIdx(tableIdx)
) )