Skip to content
Snippets Groups Projects
Commit a760e4fa authored by Clark Coleman's avatar Clark Coleman
Browse files

Fix assertion failure.

parent 87148bd9
No related branches found
No related tags found
No related merge requests found
Pipeline #17040 passed
......@@ -7747,10 +7747,10 @@ bool SMPInstr::MDIsFrameDeallocInstr(bool UseFP, STARS_asize_t LocalVarsSize) {
set<DefOrUse, LessDefUse>::iterator SecondUse = ++FirstUse;
if (SecondUse == this->Uses.GetLastRef())
return false; // no more USEs ... strange for ADD instruction
if (SecondUse->GetOp()->GetImmedValue() == ((STARS_uval_t) LocalVarsSize))
return true;
else if (SecondUse->GetOp()->IsImmedOp()) {
if (SecondUse->GetOp()->IsImmedOp()) {
intptr_t TempImm = (intptr_t) this->STARSInstPtr->GetOpnd(1)->GetImmedValue();
if (((STARS_uval_t)TempImm) == ((STARS_uval_t)LocalVarsSize))
return true;
if (0 > TempImm) // adding a negative to ESP; alloc, not dealloc
return false;
else {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment