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())
|
||||
val res = super.visitClass(declaration)
|
||||
(res as IrClass).declarations.addAll(functionsToAdd.peek()!!)
|
||||
for (function in functionsToAdd.peek()!!) {
|
||||
function.patchDeclarationParents(res)
|
||||
}
|
||||
functionsToAdd.pop()
|
||||
return res
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
||||
// FILE: inlined.kt
|
||||
// COMMON_COROUTINES_TEST
|
||||
// WITH_RUNTIME
|
||||
|
||||
Reference in New Issue
Block a user