[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:
Mads Ager
2020-09-10 09:18:22 +02:00
committed by Alexander Udalov
parent 9a93bb3f09
commit 87f17dec4a
6 changed files with 56 additions and 31 deletions
@@ -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))