This commit is contained in:
Gašper Dobrovoljc
2025-06-03 17:04:14 +02:00
parent 7e9e25b77b
commit 1b45d6a0f9
4 changed files with 15 additions and 23 deletions

View File

@@ -414,10 +414,8 @@ public class CodeGen {
case Mem.RelAccess relAccess -> {
String initLabel = "$init:" + varDef.name + "@" + loc.location().begLine() + ":" + loc.location().begColumn();
data.add(new PDM.LABEL(initLabel, loc));
if (relAccess.inits != null) {
for (Integer init : relAccess.inits) {
data.add(new PDM.DATA(init, loc));
}
for (Integer init : relAccess.inits) {
data.add(new PDM.DATA(init, loc));
}
code.add(new PDM.PUSH(-relAccess.size, loc));