Skip to content

Commit 4058f3c

Browse files
shishkin-pavelkotlin-safe-merge[bot]
authored andcommitted
[CMP] HiddenFromObjC remove outdated offset check
fixes KT-84218 that check was required earlier because of offsets used as keys in `pluginContext.metadataDeclarationRegistrar.addMetadataVisibleAnnotationsToElement` implementation prior to 3cc2297
1 parent bc59bdf commit 4058f3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/hiddenfromobjc/AddHiddenFromObjCLowering.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class AddHiddenFromObjCLowering(
9393
}
9494

9595
private fun IrFunction.isSyntheticFun(): Boolean =
96-
origin == IrDeclarationOrigin.FAKE_OVERRIDE || startOffset < 0 || endOffset < 0
96+
origin == IrDeclarationOrigin.FAKE_OVERRIDE
9797

9898

9999
override fun visitFunction(declaration: IrFunction): IrStatement {

0 commit comments

Comments
 (0)