diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLoweringPhases.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLoweringPhases.kt index d42f9edd404..3ebc0afa6db 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLoweringPhases.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLoweringPhases.kt @@ -275,11 +275,8 @@ internal val compileTimeEvaluatePhase = makeKonanFileLoweringPhase( prerequisite = setOf(varargPhase) ) -internal val coroutinesPhase = makeKonanFileOpPhase( - { context, irFile -> - NativeSuspendFunctionsLowering(context).lower(irFile) - RemoveSuspendLambdas().lower(irFile) - }, +internal val coroutinesPhase = makeKonanFileLoweringPhase( + ::NativeSuspendFunctionsLowering, name = "Coroutines", description = "Coroutines lowering", prerequisite = setOf(localFunctionsPhase, finallyBlocksPhase)