[Native] Move irByte from IrUtils2

We already have similar functions in `ExpressionHelpers`. Makes
sense to keep them together.
This commit is contained in:
Ivan Kylchik
2023-08-16 11:45:47 +02:00
committed by Space Team
parent d62323cdf1
commit ddde95bd78
2 changed files with 6 additions and 3 deletions
@@ -32,8 +32,5 @@ fun IrBuilderWithScope.irCatch() =
)
)
fun IrBuilderWithScope.irByte(value: Byte) =
IrConstImpl.byte(startOffset, endOffset, context.irBuiltIns.byteType, value)
val IrField.hasNonConstInitializer: Boolean
get() = initializer?.expression.let { it != null && it !is IrConst<*> && it !is IrConstantValue }