[Wasm] Require location for buildRefNull and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 19:30:21 +01:00
parent 12854af0a2
commit 6eba0392db
3 changed files with 17 additions and 15 deletions
@@ -175,8 +175,8 @@ abstract class WasmExpressionBuilder {
buildInstr(WasmOp.REF_TEST_DEPRECATED, location, WasmImmediate.TypeIdx(toType))
}
fun buildRefNull(type: WasmHeapType) {
buildInstr(WasmOp.REF_NULL, WasmImmediate.HeapType(WasmRefType(type)))
fun buildRefNull(type: WasmHeapType, location: SourceLocation) {
buildInstr(WasmOp.REF_NULL, location, WasmImmediate.HeapType(WasmRefType(type)))
}
fun buildDrop() {