[Wasm] Require location for buildDrop and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 19:31:49 +01:00
parent 6eba0392db
commit 95c84d5d3f
3 changed files with 9 additions and 10 deletions
@@ -179,8 +179,8 @@ abstract class WasmExpressionBuilder {
buildInstr(WasmOp.REF_NULL, location, WasmImmediate.HeapType(WasmRefType(type)))
}
fun buildDrop() {
buildInstr(WasmOp.DROP)
fun buildDrop(location: SourceLocation) {
buildInstr(WasmOp.DROP, location)
}
inline fun commentPreviousInstr(text: () -> String) {