File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -29143,13 +29143,12 @@ void Lowerer::LowerGeneratorHelper::InsertNullOutGeneratorFrameInEpilogue(IR::La
29143
29143
IR::SymOpnd* srcOpnd = IR::SymOpnd::New(symSrc, TyMachPtr, this->func);
29144
29144
IR::RegOpnd* dstOpnd = IR::RegOpnd::New(TyMachReg, this->func);
29145
29145
29146
- // We would replace the values in all of the callee-saved registers
29147
- // in the epilogue anyway, so use one of them to store the address
29148
- // to our interpreter frame
29146
+ // Since we are already in the epilogue, use one of the caller-saved
29147
+ // registers to store the address to our interpreter frame
29149
29148
#if defined(_M_X64)
29150
- dstOpnd->SetReg(RegR15); // R15 is callee-save on both Windows/Linux
29149
+ dstOpnd->SetReg(RegRCX);
29151
29150
#elif defined(_M_IX86)
29152
- dstOpnd->SetReg(RegESI );
29151
+ dstOpnd->SetReg(RegECX );
29153
29152
#endif
29154
29153
29155
29154
InsertMove(dstOpnd, srcOpnd, insertionPoint);
You can’t perform that action at this time.
0 commit comments