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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user