JVM_IR: Fix parents of $$forInline companions
This commit is contained in:
+3
@@ -537,6 +537,9 @@ private class AddContinuationLowering(private val context: JvmBackendContext) :
|
|||||||
functionsToAdd.push(mutableSetOf())
|
functionsToAdd.push(mutableSetOf())
|
||||||
val res = super.visitClass(declaration)
|
val res = super.visitClass(declaration)
|
||||||
(res as IrClass).declarations.addAll(functionsToAdd.peek()!!)
|
(res as IrClass).declarations.addAll(functionsToAdd.peek()!!)
|
||||||
|
for (function in functionsToAdd.peek()!!) {
|
||||||
|
function.patchDeclarationParents(res)
|
||||||
|
}
|
||||||
functionsToAdd.pop()
|
functionsToAdd.pop()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
|
||||||
// FILE: inlined.kt
|
// FILE: inlined.kt
|
||||||
// COMMON_COROUTINES_TEST
|
// COMMON_COROUTINES_TEST
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|||||||
Reference in New Issue
Block a user