Minor. Use safe cast in isStaticInlineClassReplacementDelegatingCall

This commit is contained in:
Ilmir Usmanov
2021-10-12 00:04:20 +02:00
parent 226306ac83
commit d0a70e5cc0
@@ -130,7 +130,7 @@ private fun IrFunction.isBridgeToSuspendImplMethod(): Boolean =
private fun IrFunction.isStaticInlineClassReplacementDelegatingCall(): Boolean =
this is IrAttributeContainer && !isStaticInlineClassReplacement &&
parentAsClass.declarations.find { it is IrAttributeContainer && it.attributeOwnerId == attributeOwnerId && it !== this }
(parent as? IrClass)?.declarations?.find { it is IrAttributeContainer && it.attributeOwnerId == attributeOwnerId && it !== this }
?.isStaticInlineClassReplacement == true
private val BRIDGE_ORIGINS = setOf(