backend: lower varargs after callable references
Because callable reference lowering creates IrVararg.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
72ff0c87cc
commit
32d9a68925
+3
-3
@@ -27,9 +27,6 @@ internal class KonanLower(val context: Context) {
|
|||||||
phaser.phase(KonanPhase.LOWER_ENUMS) {
|
phaser.phase(KonanPhase.LOWER_ENUMS) {
|
||||||
EnumClassLowering(context).run(irFile)
|
EnumClassLowering(context).run(irFile)
|
||||||
}
|
}
|
||||||
phaser.phase(KonanPhase.LOWER_VARARG) {
|
|
||||||
VarargInjectionLowering(context).runOnFilePostfix(irFile)
|
|
||||||
}
|
|
||||||
phaser.phase(KonanPhase.LOWER_DEFAULT_PARAMETER_EXTENT) {
|
phaser.phase(KonanPhase.LOWER_DEFAULT_PARAMETER_EXTENT) {
|
||||||
DefaultArgumentStubGenerator(context).runOnFilePostfix(irFile)
|
DefaultArgumentStubGenerator(context).runOnFilePostfix(irFile)
|
||||||
DefaultParameterInjector(context).runOnFilePostfix(irFile)
|
DefaultParameterInjector(context).runOnFilePostfix(irFile)
|
||||||
@@ -55,6 +52,9 @@ internal class KonanLower(val context: Context) {
|
|||||||
phaser.phase(KonanPhase.LOWER_CALLABLES) {
|
phaser.phase(KonanPhase.LOWER_CALLABLES) {
|
||||||
CallableReferenceLowering(context).runOnFilePostfix(irFile)
|
CallableReferenceLowering(context).runOnFilePostfix(irFile)
|
||||||
}
|
}
|
||||||
|
phaser.phase(KonanPhase.LOWER_VARARG) {
|
||||||
|
VarargInjectionLowering(context).runOnFilePostfix(irFile)
|
||||||
|
}
|
||||||
phaser.phase(KonanPhase.BRIDGES_BUILDING) {
|
phaser.phase(KonanPhase.BRIDGES_BUILDING) {
|
||||||
BridgesBuilding(context).lower(irFile)
|
BridgesBuilding(context).lower(irFile)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user