Skip to content

Commit 2c5ef91

Browse files
mcpiromanSpace Team
authored andcommitted
!fixup [IR] Adjust use-sites of IrValidatorConfig
1 parent 0dc8947 commit 2c5ef91

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/convertToIr.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ private class Fir2IrPipeline(
345345
irBuiltIns,
346346
phaseName = "",
347347
IrValidatorConfig(checkUnboundSymbols = true)
348+
.withBasicChecks()
348349
)
349350
}
350351
}

compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/IrValidationPhase.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ abstract class IrValidationPhase<Context : LoweringContext>(val context: Context
3939

4040
abstract class IrValidationBeforeLoweringPhase<Context : LoweringContext>(context: Context) : IrValidationPhase<Context>(context) {
4141
override val defaultValidationConfig: IrValidatorConfig
42-
get() = IrValidatorConfig(checkTreeConsistency = true, checkUnboundSymbols = true)
42+
get() = IrValidatorConfig(checkTreeConsistency = true)
4343
.withBasicChecks()
4444
.withCheckers(IrValueAccessScopeChecker)
4545
//.withTypeChecks() // TODO: Re-enable checking types (KT-68663)
@@ -89,6 +89,7 @@ class IrValidationAfterInliningAllFunctionsOnTheSecondStagePhase<Context : Lower
8989
) : IrValidationPhase<Context>(context) {
9090
override val defaultValidationConfig: IrValidatorConfig
9191
get() = IrValidatorConfig(checkTreeConsistency = true)
92+
.withBasicChecks()
9293
//.withTypeChecks() // TODO: Re-enable checking types (KT-68663)
9394
.applyIf(context.configuration.enableIrVisibilityChecks) {
9495
withCheckers(IrVisibilityChecker, IrCrossFileFieldUsageChecker, IrValueAccessScopeChecker)
@@ -112,4 +113,5 @@ class IrValidationAfterInliningAllFunctionsOnTheFirstStagePhase<Context : Loweri
112113
open class IrValidationAfterLoweringPhase<Context : LoweringContext>(context: Context) : IrValidationPhase<Context>(context) {
113114
override val defaultValidationConfig: IrValidatorConfig
114115
get() = IrValidatorConfig(checkTreeConsistency = true)
116+
.withBasicChecks()
115117
}

0 commit comments

Comments
 (0)