[JVM] Drop toArray call where iterator can be used

This commit is contained in:
Ivan Kylchik
2023-09-07 12:08:56 +02:00
committed by Space Team
parent 2387fe302c
commit 07c7792693
@@ -226,10 +226,8 @@ class UninitializedStoresProcessor(private val methodNode: MethodNode) {
get() = "${instructions.indexOf(this)}: $insnText"
fun analyzePopInstructions(frames: Array<Frame<BasicValue>?>) {
val insns = instructions.toArray()
for (i in frames.indices) {
for ((i, insn) in instructions.withIndex()) {
val frame = frames[i] ?: continue
val insn = insns[i]
when (insn.opcode) {
Opcodes.POP -> analyzePop(insn, frame)
Opcodes.POP2 -> analyzePop2(insn, frame)