[Wasm] Require location for buildStructNew and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 19:13:27 +01:00
parent 3967bd2755
commit 530438dfcb
3 changed files with 16 additions and 12 deletions
@@ -153,8 +153,8 @@ abstract class WasmExpressionBuilder {
)
}
fun buildStructNew(struct: WasmSymbol<WasmTypeDeclaration>) {
buildInstr(WasmOp.STRUCT_NEW, WasmImmediate.GcType(struct))
fun buildStructNew(struct: WasmSymbol<WasmTypeDeclaration>, location: SourceLocation) {
buildInstr(WasmOp.STRUCT_NEW, location, WasmImmediate.GcType(struct))
}
fun buildStructSet(struct: WasmSymbol<WasmTypeDeclaration>, fieldId: WasmSymbol<Int>) {