[IR] Change copy method into shallowCopy in Native
This commit is contained in:
committed by
TeamCityServer
parent
368ac36204
commit
03fed85447
+1
-1
@@ -86,7 +86,7 @@ internal class InitializersLowering(val context: CommonBackendContext) : ClassLo
|
|||||||
declaration.initializer =
|
declaration.initializer =
|
||||||
if (initExpression is IrConst<*> &&
|
if (initExpression is IrConst<*> &&
|
||||||
declaration.correspondingPropertySymbol?.owner?.isConst == true) {
|
declaration.correspondingPropertySymbol?.owner?.isConst == true) {
|
||||||
IrExpressionBodyImpl(initExpression.copy())
|
IrExpressionBodyImpl(initExpression.shallowCopy())
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -814,7 +814,7 @@ private class InteropTransformer(val context: Context, override val irFile: IrFi
|
|||||||
require(initializer is IrConst<*>) { renderCompilerError(expression) }
|
require(initializer is IrConst<*>) { renderCompilerError(expression) }
|
||||||
|
|
||||||
// Avoid node duplication
|
// Avoid node duplication
|
||||||
return initializer.copy()
|
return initializer.shallowCopy()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitCall(expression: IrCall): IrExpression {
|
override fun visitCall(expression: IrCall): IrExpression {
|
||||||
|
|||||||
Reference in New Issue
Block a user