diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt index 52bb921e5c4..862a9cee7f5 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt @@ -84,11 +84,7 @@ class Fir2IrVisitor( file.declarations.forEach { it.toIrDeclaration() } - - annotations = file.annotations.mapNotNull { - it.accept(this@Fir2IrVisitor, data) as? IrConstructorCall - } - + annotationGenerator.generate(this, file) metadata = FirMetadataSource.File(file) } }