JVM_IR: Do not generate parameter annotations for continuation constructors

The idea is the same as in case of anonymous objects: they are created only
from Kotlin code, so we are sure, that the parameters are valid.
Also, the inliner complains on their transformations.
This commit is contained in:
Ilmir Usmanov
2019-12-12 18:36:20 +01:00
parent 9292022f88
commit 5c92da3f35
8 changed files with 23 additions and 26 deletions
@@ -131,12 +131,6 @@ class MethodInliner(
processReturns(resultNode, returnLabelOwner, remapReturn, end)
//flush transformed node to output
// TODO: HACK resultNode's invisibleParameterAnnotations' size is greater than adapter's
if (resultNode.name == "<init>" && resultNode.desc.contains("Lkotlin/coroutines/Continuation;") &&
inliningContext.root.state.isIrBackend
) {
resultNode.invisibleParameterAnnotations = null
}
resultNode.accept(SkipMaxAndEndVisitor(adapter))
sourceMapper.endMapping()