JVM_IR drop StripTypeAliasDeclarationsLowering

This commit is contained in:
Dmitry Petrov
2022-01-25 19:03:36 +03:00
committed by Space
parent 149e596bef
commit e55f7459f4
2 changed files with 1 additions and 8 deletions
@@ -52,12 +52,6 @@ private val validateIrAfterLowering = makeCustomPhase(
description = "Validate IR after lowering"
)
private val stripTypeAliasDeclarationsPhase = makeIrFilePhase<CommonBackendContext>(
{ StripTypeAliasDeclarationsLowering() },
name = "StripTypeAliasDeclarations",
description = "Strip typealias declarations"
)
// TODO make all lambda-related stuff work with IrFunctionExpression and drop this phase
private val provisionalFunctionExpressionPhase = makeIrFilePhase<CommonBackendContext>(
{ ProvisionalFunctionExpressionLowering() },
@@ -260,7 +254,6 @@ private val kotlinNothingValueExceptionPhase = makeIrFilePhase<CommonBackendCont
private val jvmFilePhases = listOf(
typeAliasAnnotationMethodsPhase,
stripTypeAliasDeclarationsPhase,
provisionalFunctionExpressionPhase,
jvmOverloadsAnnotationPhase,
@@ -74,7 +74,7 @@ inline fun <T, reified S : T> MutableList<T>.transformSubsetFlat(transformation:
when (transformed?.size) {
null -> i++
0 -> removeAt(i)
1 -> set(i++, transformed.first())
1 -> set(i++, transformed[0])
else -> {
addAll(i, transformed)
i += transformed.size