JVM_IR: Restore lost top-level declaration check in annotation gen.
When moving away from descriptors, this top-level declaration check was lost. That leads to many useless annotation elements in inner classes attributes for annotations that are not inner classes.
This commit is contained in:
committed by
Georgy Bronnikov
parent
7929a05ee3
commit
3f6492ab2a
+1
-1
@@ -296,7 +296,7 @@ open class ClassCodegen protected constructor(
|
||||
// See FileBasedKotlinClass.convertAnnotationVisitor
|
||||
override fun addInnerClassInfoFromAnnotation(innerClass: IrClass) {
|
||||
var current: IrDeclaration? = innerClass
|
||||
while (current != null) {
|
||||
while (current != null && !current.isTopLevelDeclaration) {
|
||||
if (current is IrClass) {
|
||||
innerClasses.add(current)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user