Fix usage of descriptor API

(cherry picked from commit 71abe130dcc97fdf9e64e272bb4b24cb94bdb46f)
This commit is contained in:
Roman Artemev
2020-02-14 15:45:35 +03:00
committed by Vasily Levchenko
parent 735013cc42
commit 4ed00be9e5
@@ -67,7 +67,7 @@ internal fun IrClass.storageKind(context: Context): ObjectStorageKind = when {
}
val IrField.isMainOnlyNonPrimitive get() = when {
descriptor.type.computePrimitiveBinaryTypeOrNull() != null -> false
type.computePrimitiveBinaryTypeOrNull() != null -> false
else -> storageKind == FieldStorageKind.MAIN_THREAD
}