diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLower.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLower.kt index 466abe61896..9687b91b2fd 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLower.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLower.kt @@ -27,9 +27,6 @@ internal class KonanLower(val context: Context) { phaser.phase(KonanPhase.LOWER_ENUMS) { EnumClassLowering(context).run(irFile) } - phaser.phase(KonanPhase.LOWER_VARARG) { - VarargInjectionLowering(context).runOnFilePostfix(irFile) - } phaser.phase(KonanPhase.LOWER_DEFAULT_PARAMETER_EXTENT) { DefaultArgumentStubGenerator(context).runOnFilePostfix(irFile) DefaultParameterInjector(context).runOnFilePostfix(irFile) @@ -55,6 +52,9 @@ internal class KonanLower(val context: Context) { phaser.phase(KonanPhase.LOWER_CALLABLES) { CallableReferenceLowering(context).runOnFilePostfix(irFile) } + phaser.phase(KonanPhase.LOWER_VARARG) { + VarargInjectionLowering(context).runOnFilePostfix(irFile) + } phaser.phase(KonanPhase.BRIDGES_BUILDING) { BridgesBuilding(context).lower(irFile) }