IrConstTransformer: drop unnecessary argument existence check

This commit is contained in:
Mikhail Glukhikh
2020-06-29 16:27:23 +03:00
parent c3fc524c0d
commit d798071e06
2 changed files with 0 additions and 4 deletions
@@ -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,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_REFLECT // WITH_REFLECT
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM