[K/N] Fixed a problem with built coroutine visibility
#KT-55494 Fixed
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@ abstract class AbstractSuspendFunctionsLowering<C : CommonBackendContext>(val co
|
|||||||
endOffset = irFunction.endOffset
|
endOffset = irFunction.endOffset
|
||||||
origin = DECLARATION_ORIGIN_COROUTINE_IMPL
|
origin = DECLARATION_ORIGIN_COROUTINE_IMPL
|
||||||
name = nameForCoroutineClass(irFunction)
|
name = nameForCoroutineClass(irFunction)
|
||||||
visibility = irFunction.visibility
|
visibility = DescriptorVisibilities.PRIVATE
|
||||||
}.apply {
|
}.apply {
|
||||||
parent = irFunction.parent
|
parent = irFunction.parent
|
||||||
createParameterDeclarations()
|
createParameterDeclarations()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ open class EmptyContinuation(override val context: CoroutineContext = EmptyCorou
|
|||||||
suspend fun suspendForever(): Int = suspendCoroutineUninterceptedOrReturn {
|
suspend fun suspendForever(): Int = suspendCoroutineUninterceptedOrReturn {
|
||||||
COROUTINE_SUSPENDED
|
COROUTINE_SUSPENDED
|
||||||
}
|
}
|
||||||
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:$fooCOROUTINE
|
// CHECK-LABEL: define internal %struct.ObjHeader* @"kfun:$fooCOROUTINE
|
||||||
|
|
||||||
// CHECK-NOT: ; Function Attrs: {{.*}}noreturn
|
// CHECK-NOT: ; Function Attrs: {{.*}}noreturn
|
||||||
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#foo#suspend(kotlin.coroutines.Continuation<kotlin.Nothing>){}kotlin.Any"
|
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#foo#suspend(kotlin.coroutines.Continuation<kotlin.Nothing>){}kotlin.Any"
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ suspend fun s23(f: Boolean) {
|
|||||||
|
|
||||||
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#s24#suspend(kotlin.coroutines.Continuation<kotlin.Unit>){}kotlin.Any
|
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#s24#suspend(kotlin.coroutines.Continuation<kotlin.Unit>){}kotlin.Any
|
||||||
suspend fun s24() {
|
suspend fun s24() {
|
||||||
// CHECK: call void @"kfun:$s24COROUTINE${{[0-9]*}}#<init>
|
// CHECK: call void @"kfun:$s24COROUTINE${{[0-9]*}}.<init>#internal
|
||||||
sInt()
|
sInt()
|
||||||
}
|
}
|
||||||
// CHECK-LABEL: epilogue:
|
// CHECK-LABEL: epilogue:
|
||||||
|
|||||||
Reference in New Issue
Block a user