Validate label value of coroutine in case of no suspension points

#KT-14718 Fixed
This commit is contained in:
Denis Zharkov
2016-11-09 12:00:33 +03:00
parent 46b91365ba
commit ae70a60a0a
5 changed files with 59 additions and 3 deletions
@@ -74,8 +74,6 @@ class CoroutineTransformerMethodVisitor(
// Add global exception handler
processHandleExceptionCall(methodNode)
if (suspensionPoints.isEmpty()) return
// Spill stack to variables before suspension points, try/catch blocks
FixStackWithLabelNormalizationMethodTransformer().transform(classBuilder.thisName, methodNode)