[Wasm] Require location for buildSetLocal and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 17:50:34 +01:00
parent 0b59ef58dc
commit 00d0c38fc3
4 changed files with 15 additions and 11 deletions
@@ -133,8 +133,8 @@ abstract class WasmExpressionBuilder {
buildInstr(WasmOp.LOCAL_GET, location, WasmImmediate.LocalIdx(local))
}
fun buildSetLocal(local: WasmLocal) {
buildInstr(WasmOp.LOCAL_SET, WasmImmediate.LocalIdx(local))
fun buildSetLocal(local: WasmLocal, location: SourceLocation) {
buildInstr(WasmOp.LOCAL_SET, location, WasmImmediate.LocalIdx(local))
}
fun buildGetGlobal(global: WasmSymbol<WasmGlobal>) {