[Wasm] Require location for buildSetGlobal and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-13 19:06:14 +01:00
parent 65e1b53027
commit 3967bd2755
2 changed files with 3 additions and 3 deletions
@@ -229,7 +229,7 @@ class BodyGenerator(
body.commentPreviousInstr { "name: ${field.name}, type: ${field.type.render()}" }
} else {
generateExpression(expression.value)
body.buildSetGlobal(context.referenceGlobalField(expression.symbol))
body.buildSetGlobal(context.referenceGlobalField(expression.symbol), expression.getSourceLocation())
body.commentPreviousInstr { "type: ${field.type.render()}" }
}