[x86/Linux] Correctly initialize nonVolRegPtrs in LazyMachState::unwindLazyState...
authorJonghyun Park <parjong@gmail.com>
Fri, 21 Apr 2017 15:51:12 +0000 (00:51 +0900)
committerJan Kotas <jkotas@microsoft.com>
Fri, 21 Apr 2017 15:51:12 +0000 (08:51 -0700)
src/vm/i386/gmsx86.cpp

index 840a50d..2852b92 100644 (file)
@@ -1295,10 +1295,10 @@ void LazyMachState::unwindLazyState(LazyMachState* baseState,
     ctx.Esi = lazyState->_esi = baseState->_esi;
     ctx.Ebx = lazyState->_ebx = baseState->_ebx;
 
-    nonVolRegPtrs.Edi = &(lazyState->_edi);
-    nonVolRegPtrs.Esi = &(lazyState->_esi);
-    nonVolRegPtrs.Ebx = &(lazyState->_ebx);
-    nonVolRegPtrs.Ebp = &(lazyState->_ebp);
+    nonVolRegPtrs.Edi = &(baseState->_edi);
+    nonVolRegPtrs.Esi = &(baseState->_esi);
+    nonVolRegPtrs.Ebx = &(baseState->_ebx);
+    nonVolRegPtrs.Ebp = &(baseState->_ebp);
 
     PCODE pvControlPc;