fixup! Fix UnsafeNumber being applied incorrectly in hierarchical commonization
diff --git a/native/commonizer/src/org/jetbrains/kotlin/commonizer/core/UnsafeNumberAnnotationUtils.kt b/native/commonizer/src/org/jetbrains/kotlin/commonizer/core/UnsafeNumberAnnotationUtils.kt
index 1c4971c..b0cf802 100644
--- a/native/commonizer/src/org/jetbrains/kotlin/commonizer/core/UnsafeNumberAnnotationUtils.kt
+++ b/native/commonizer/src/org/jetbrains/kotlin/commonizer/core/UnsafeNumberAnnotationUtils.kt
@@ -19,7 +19,7 @@
inputTypes: List<CirType>,
commonizedType: CirType,
): CirAnnotation? {
- if (!shouldCreateAnnotation(settings, commonizedType, inputDeclarations))
+ if (!shouldCreateAnnotation(settings, commonizedType))
return null
val actualPlatformTypes = mutableMapOf<String, RenderedType>()
@@ -47,12 +47,10 @@
private fun shouldCreateAnnotation(
settings: CommonizerSettings,
commonizedType: CirType,
- inputDeclarations: List<CirHasAnnotations>,
): Boolean {
if (!settings.getSetting(OptimisticNumberCommonizationEnabledKey))
return false
-
var isMarkedTypeFound = false
commonizedType.accept(object : BasicCirTypeVisitor() {