From 469a2315fc53538c57d25228cea94f7e5de12fe4 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Tue, 7 Feb 2023 18:08:47 +0100 Subject: [PATCH] [Native] Move BuiltinOperatorLowering to a later stage of the lowerings pipeline This would allow using unlowered operator symbols from IrBuiltIns in all lowerings before BuiltinOperatorLowering. --- .../jetbrains/kotlin/backend/konan/driver/phases/Lowerings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/Lowerings.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/Lowerings.kt index 91e23d76944..81cad1ca320 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/Lowerings.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/Lowerings.kt @@ -521,7 +521,6 @@ private fun PhaseEngine.getAllLowerings() = listOfNotNull functionReferencePhase, singleAbstractMethodPhase, enumWhenPhase, - builtinOperatorPhase, finallyBlocksPhase, enumClassPhase, enumUsagePhase, @@ -534,6 +533,7 @@ private fun PhaseEngine.getAllLowerings() = listOfNotNull objectClassesPhase, constantInliningPhase, staticInitializersPhase, + builtinOperatorPhase, bridgesPhase, exportInternalAbiPhase.takeIf { context.config.produce.isCache }, useInternalAbiPhase,