[Wasm] Require location for buildGetLocal and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 17:40:44 +01:00
parent 9e86ac071d
commit 0b59ef58dc
4 changed files with 27 additions and 21 deletions
@@ -129,8 +129,8 @@ abstract class WasmExpressionBuilder {
)
}
fun buildGetLocal(local: WasmLocal) {
buildInstr(WasmOp.LOCAL_GET, WasmImmediate.LocalIdx(local))
fun buildGetLocal(local: WasmLocal, location: SourceLocation) {
buildInstr(WasmOp.LOCAL_GET, location, WasmImmediate.LocalIdx(local))
}
fun buildSetLocal(local: WasmLocal) {