From f3f8d94df8d6ceb5a973912d7ba15bf32c6edba9 Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Mon, 15 Jul 2024 17:19:50 +0200 Subject: [PATCH] Compose compiler: Do not add HiddenFromObjC annotation twice The metadata-visible annotation should be added using only the appropriate API: `addMetadataVisibleAnnotationsToElement` Fixes KT-69876 A followup to investigate the root cause: CMP-5670 --- .../compiler/plugins/kotlin/lower/AbstractComposeLowering.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/AbstractComposeLowering.kt b/plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/AbstractComposeLowering.kt index bb5c0e5612ee5..feaf220e904f8 100644 --- a/plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/AbstractComposeLowering.kt +++ b/plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/AbstractComposeLowering.kt @@ -1044,7 +1044,6 @@ abstract class AbstractComposeLowering( returnType = stabilityField.type visibility = DescriptorVisibilities.PUBLIC origin = IrDeclarationOrigin.GeneratedByPlugin(ComposeCompilerKey) - annotations = listOf(hiddenFromObjCAnnotation) }.also { fn -> fn.parent = parent fn.body = DeclarationIrBuilder(context, fn.symbol).irBlockBody {