diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsLoweringPhases.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsLoweringPhases.kt index 6aaf3daee83..9d1aad360bd 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsLoweringPhases.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsLoweringPhases.kt @@ -956,9 +956,6 @@ val loweringList = listOf( validateIrAfterLowering, ) -// TODO comment? Eliminate ModuleLowering's? Don't filter them here? -val pirLowerings = loweringList.filter { it is DeclarationLowering || it is BodyLowering } + staticMembersLoweringPhase - val jsPhases = SameTypeNamedCompilerPhase( name = "IrModuleLowering", description = "IR module lowering", diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/compilerWithIC.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/compilerWithIC.kt index 51b1d0cfadd..4d660a81633 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/compilerWithIC.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/compilerWithIC.kt @@ -88,5 +88,5 @@ fun lowerPreservingTags( lowering.modulePhase.invoke(phaseConfig, phaserState, context, modules) } - controller.currentStage = pirLowerings.size + 1 + controller.currentStage = loweringList.size + 1 }