From 5fa9acc17ac27b8844b150eab3d3f818059986bc Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Mon, 25 Jan 2021 17:17:52 +0300 Subject: [PATCH] [JS IR] Add additional exported declarations inside dce loop [JS IR] Remove useless filter in dce for more log information ^KT-44469 fixed --- .../backend.js/src/org/jetbrains/kotlin/ir/backend/js/Dce.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/Dce.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/Dce.kt index c4c5ff00461..a07ba642801 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/Dce.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/Dce.kt @@ -407,13 +407,16 @@ fun usefulDeclarations(roots: Iterable, context: JsIrBackendConte } } } + + context.additionalExportedDeclarations + .forEach { it.enqueue(null, "from additionalExportedDeclarations", altFromFqn = "") } } if (printReachabilityInfo) { reachabilityInfo.forEach(::println) } - return result + context.additionalExportedDeclarations + return result } private fun Collection.filterDescendantsOf(bases: Collection): Collection {