From 32a265a7ebbf5eb43e7cc875b5fadbc8b11df82e Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Tue, 24 Jan 2023 14:52:08 +0200 Subject: [PATCH] [IR] Lift restrictions on phase prerequisites Allow depending on phases of different "types". --- .../jetbrains/kotlin/backend/common/phaser/CompilerPhase.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/CompilerPhase.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/CompilerPhase.kt index 578c6ecb7db..30fb52f74ca 100644 --- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/CompilerPhase.kt +++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/CompilerPhase.kt @@ -70,7 +70,7 @@ infix operator fun Action.plus(other: Action( val name: String, val description: String, - val prerequisite: Set> = emptySet(), + val prerequisite: Set> = emptySet(), val preconditions: Set> = emptySet(), val postconditions: Set> = emptySet(), protected val nlevels: Int = 0 @@ -133,7 +133,7 @@ abstract class AbstractNamedCompilerPhase( name: String, description: String, - prerequisite: Set> = emptySet(), + prerequisite: Set> = emptySet(), private val lower: CompilerPhase, preconditions: Set> = emptySet(), postconditions: Set> = emptySet(), @@ -189,7 +189,7 @@ typealias SameTypeNamedCompilerPhase = NamedCompilerPhase( name: String, description: String, - prerequisite: Set> = emptySet(), + prerequisite: Set> = emptySet(), preconditions: Set> = emptySet(), postconditions: Set> = emptySet(), private val preactions: Set> = emptySet(),