[JS IR BE] Fix unboxing empty inline class varargs
This commit is contained in:
+5
-1
@@ -112,7 +112,11 @@ private class VarargTransformer(
|
|||||||
|
|
||||||
// empty vararg => empty array literal
|
// empty vararg => empty array literal
|
||||||
if (segments.isEmpty()) {
|
if (segments.isEmpty()) {
|
||||||
return emptyList<IrExpression>().toArrayLiteral(primitiveExpressionType, primitiveElementType)
|
val res = emptyList<IrExpression>().toArrayLiteral(primitiveExpressionType, primitiveElementType)
|
||||||
|
return if (needUnboxing)
|
||||||
|
res.boxInlineClassIfNeeded(arrayInlineClass!!)
|
||||||
|
else
|
||||||
|
res
|
||||||
}
|
}
|
||||||
|
|
||||||
// vararg with a single segment => no need to concatenate
|
// vararg with a single segment => no need to concatenate
|
||||||
|
|||||||
Reference in New Issue
Block a user