If we need to swap registers during codegen for PUTARG_SPLIT, make sure
we use the right GC type.
Fixes #13127.
if (targetReg == addrReg && idx != treeNode->gtNumRegs - 1)
{
assert(targetReg != baseReg);
- emit->emitIns_Mov(INS_mov, emitActualTypeSize(type), baseReg, addrReg, /* canSkip */ false);
+ var_types addrType = addrNode->TypeGet();
+ emit->emitIns_Mov(INS_mov, emitActualTypeSize(addrType), baseReg, addrReg, /* canSkip */ false);
addrReg = baseReg;
}