Parcourir la source

Fixed inlining of stack restore instruction

Brian Fiete il y a 3 ans
Parent
commit
501491d875
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      IDEHelper/Backend/BeModule.cpp

+ 1 - 1
IDEHelper/Backend/BeModule.cpp

@@ -257,7 +257,7 @@ void BeInliner::Visit(BeStackSaveInst* stackSaveInst)
 void BeInliner::Visit(BeStackRestoreInst* stackRestoreInst)
 {
 	auto destStackRestoreInst = AllocInst(stackRestoreInst);
-	destStackRestoreInst->mStackVal = Remap(stackRestoreInst);
+	destStackRestoreInst->mStackVal = Remap(stackRestoreInst->mStackVal);
 }
 
 void BeInliner::Visit(BeObjectAccessCheckInst* objectAccessCheckInst)