From e8ca45378b99f95413523753e8ce05eb900ad794 Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Thu, 20 Jul 2023 13:29:30 +0300 Subject: [PATCH] [K/N] Moved couple of phases down the pipeline --- .../backend/konan/driver/phases/NativeLoweringPhases.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/NativeLoweringPhases.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/NativeLoweringPhases.kt index ee79017e175..247f2438d5b 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/NativeLoweringPhases.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/NativeLoweringPhases.kt @@ -498,8 +498,6 @@ private val constEvaluationPhase = createFileLoweringPhase( ) private fun PhaseEngine.getAllLowerings() = listOfNotNull>( - removeExpectDeclarationsPhase, - stripTypeAliasDeclarationsPhase, lowerBeforeInlinePhase, arrayConstructorPhase, lateinitPhase, @@ -509,6 +507,8 @@ private fun PhaseEngine.getAllLowerings() = listOfNotNull extractLocalClassesFromInlineBodies, wrapInlineDeclarationsWithReifiedTypeParametersLowering, inlinePhase, + removeExpectDeclarationsPhase, + stripTypeAliasDeclarationsPhase, constEvaluationPhase, provisionalFunctionExpressionPhase, postInlinePhase,