[JS_IR] Use IrSetValue for default argument handling for JS backend.
Fix a couple of parameter remappings that now have to take IrSetValue into account as well as IrGetValue.
This commit is contained in:
committed by
Alexander Udalov
parent
9a93bb3f09
commit
87f17dec4a
@@ -169,7 +169,7 @@ abstract class DataClassMembersGenerator(
|
||||
for (property in properties.drop(1)) {
|
||||
val shiftedResult = irCallOp(intTimesSymbol, irIntType, irGet(irResultVar), irInt(31))
|
||||
val irRhs = irCallOp(intPlusSymbol, irIntType, shiftedResult, getHashCodeOfProperty(property))
|
||||
+irSetVar(irResultVar.symbol, irRhs)
|
||||
+irSet(irResultVar.symbol, irRhs)
|
||||
}
|
||||
|
||||
+irReturn(irGet(irResultVar))
|
||||
|
||||
Reference in New Issue
Block a user