File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29143,10 +29143,11 @@ 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
- // callee-save register, we would replace this register in the epilogue anyway
29147
- // so use it as a temp register
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
29148
29149
#if defined(_M_X64)
29149
- dstOpnd->SetReg(RegRSI);
29150
+ dstOpnd->SetReg(RegR15); // R15 is callee-save on both Windows/Linux
29150
29151
#elif defined(_M_IX86)
29151
29152
dstOpnd->SetReg(RegESI);
29152
29153
#endif
You can’t perform that action at this time.
0 commit comments