[Wasm] Require location for buildStructSet and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 19:17:53 +01:00
parent e7dc443c18
commit 158a307334
2 changed files with 6 additions and 2 deletions
@@ -158,9 +158,10 @@ abstract class WasmExpressionBuilder {
buildInstr(WasmOp.STRUCT_NEW, location, WasmImmediate.GcType(struct))
}
fun buildStructSet(struct: WasmSymbol<WasmTypeDeclaration>, fieldId: WasmSymbol<Int>) {
fun buildStructSet(struct: WasmSymbol<WasmTypeDeclaration>, fieldId: WasmSymbol<Int>, location: SourceLocation) {
buildInstr(
WasmOp.STRUCT_SET,
location,
WasmImmediate.GcType(struct),
WasmImmediate.StructFieldIdx(fieldId)
)