IrConstTransformer: drop unnecessary argument existence check
This commit is contained in:
-3
@@ -57,9 +57,6 @@ class IrConstTransformer(irBuiltIns: IrBuiltIns) : IrElementTransformerVoid() {
|
|||||||
|
|
||||||
private fun transformAnnotations(annotationContainer: IrAnnotationContainer) {
|
private fun transformAnnotations(annotationContainer: IrAnnotationContainer) {
|
||||||
annotationContainer.annotations.forEach { annotation ->
|
annotationContainer.annotations.forEach { annotation ->
|
||||||
// TODO this check can be removed after fix with annotation call arguments mapping
|
|
||||||
if ((0 until annotation.valueArgumentsCount).any { annotation.getValueArgument(it) == null }) return@forEach
|
|
||||||
|
|
||||||
for (i in 0 until annotation.valueArgumentsCount) {
|
for (i in 0 until annotation.valueArgumentsCount) {
|
||||||
val arg = annotation.getValueArgument(i) ?: continue
|
val arg = annotation.getValueArgument(i) ?: continue
|
||||||
when (arg) {
|
when (arg) {
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
|
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
|
|||||||
Reference in New Issue
Block a user