[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(
symbol: WasmSymbol<WasmFunctionType>,
tableIdx: WasmSymbolReadOnly<Int> = WasmSymbol(0),
location: SourceLocation
) {
buildInstr(
WasmOp.CALL_INDIRECT,
location,
WasmImmediate.TypeIdx(symbol),
WasmImmediate.TableIdx(tableIdx)
)