[JVM_IR] Drop reversed call from writeLocalVariablesInTable

It is better to use simple for loop. This change speeds up
backend by approximately 0.07%.
This commit is contained in:
Ivan Kylchik
2023-08-21 19:02:08 +02:00
committed by Space Team
parent 156c341eeb
commit 9135e9d13d
@@ -438,8 +438,8 @@ class ExpressionCodegen(
}
}
info.variables.reversed().forEach {
frameMap.leave(it.declaration.symbol)
for (i in info.variables.size - 1 downTo 0) {
frameMap.leave(info.variables[i].declaration.symbol)
}
}