diff --git a/intermediate/src/prog8/intermediate/IRProgram.kt b/intermediate/src/prog8/intermediate/IRProgram.kt index bdd6d6ee9..65a2fce0b 100644 --- a/intermediate/src/prog8/intermediate/IRProgram.kt +++ b/intermediate/src/prog8/intermediate/IRProgram.kt @@ -223,7 +223,7 @@ class IRProgram(val name: String, var i = index+1 var instr2 = chunk.instructions[i] val registers = mutableSetOf() - while(instr2.opcode!=Opcode.SYSCALL && instr2.opcode!=Opcode.CALL) { + while(instr2.opcode!=Opcode.SYSCALL && instr2.opcode!=Opcode.CALL && i