[Native] Move hasNonConstInitializer from IrUtils2

This function could be useful for other backends.
This commit is contained in:
Ivan Kylchik
2023-08-16 11:48:01 +02:00
committed by Space Team
parent ddde95bd78
commit c2076a0227
2 changed files with 3 additions and 3 deletions
@@ -31,6 +31,3 @@ fun IrBuilderWithScope.irCatch() =
isLateinit = false
)
)
val IrField.hasNonConstInitializer: Boolean
get() = initializer?.expression.let { it != null && it !is IrConst<*> && it !is IrConstantValue }