Cleanup compiler warnings in IR-related modules

This commit is contained in:
Alexander Udalov
2019-08-28 12:41:53 +02:00
parent 406462d422
commit bf5ca2ed84
8 changed files with 11 additions and 18 deletions
@@ -45,12 +45,9 @@ class PrimitiveCompanionLowering(val context: JsIrBackendContext) : FileLowering
val actualCompanion = getActualPrimitiveCompanion(companion)
?: return null
val actualFunction =
actualCompanion.declarations
.filterIsInstance<IrSimpleFunction>()
.single { it.name == function.name }
return actualFunction!!
return actualCompanion.declarations
.filterIsInstance<IrSimpleFunction>()
.single { it.name == function.name }
}
override fun lower(irFile: IrFile) {
@@ -78,4 +75,4 @@ class PrimitiveCompanionLowering(val context: JsIrBackendContext) : FileLowering
}
})
}
}
}