Fix return types for while loops.

This commit is contained in:
Steven Schäfer
2019-03-11 13:09:17 +01:00
committed by max-kammerer
parent 4c8425caeb
commit 9ea39d2b7c
4 changed files with 2 additions and 5 deletions
@@ -921,7 +921,7 @@ class ExpressionCodegen(
mv.goTo(continueLabel)
mv.mark(endLabel)
return loop.onStack
return StackValue.none()
}
override fun visitBreakContinue(jump: IrBreakContinue, data: BlockInfo): StackValue {
@@ -983,7 +983,7 @@ class ExpressionCodegen(
generateLoopJump(loop.condition, data, entry, false)
mv.mark(endLabel)
return loop.onStack
return StackValue.none()
}
override fun visitTry(aTry: IrTry, data: BlockInfo): StackValue {