diff options
author | Jonghyun Park <parjong@gmail.com> | 2017-02-01 08:16:57 +0900 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-02-01 00:16:57 +0100 |
commit | adb31c9ad9a37c57f6af0a415769919c17468f78 (patch) | |
tree | e939ef7f025f34e3d3b9e7372c987d95984d5cc6 /src/inc/regdisp.h | |
parent | 93afcb59e6fcb601209045e608c5e6fa3e4bdc91 (diff) | |
download | coreclr-adb31c9ad9a37c57f6af0a415769919c17468f78.tar.gz coreclr-adb31c9ad9a37c57f6af0a415769919c17468f78.tar.bz2 coreclr-adb31c9ad9a37c57f6af0a415769919c17468f78.zip |
Use Explicit Field Reference in FillRegDisplay (for x86) (#9212)
Diffstat (limited to 'src/inc/regdisp.h')
-rw-r--r-- | src/inc/regdisp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inc/regdisp.h b/src/inc/regdisp.h index 46550838f0..6f98920c55 100644 --- a/src/inc/regdisp.h +++ b/src/inc/regdisp.h @@ -393,10 +393,10 @@ inline void FillRegDisplay(const PREGDISPLAY pRD, PT_CONTEXT pctx, PT_CONTEXT pC pRD->ctxPtrsOne.Lr = &pctx->Lr; #elif defined(_TARGET_X86_) // _TARGET_ARM_ - for (int i = 0; i < 4; ++i) - { - *(&pRD->ctxPtrsOne.Ebx + i) = (&pctx->Ebx + i); - } + pRD->ctxPtrsOne.Ebx = &pctx->Ebx; + pRD->ctxPtrsOne.Esi = &pctx->Esi; + pRD->ctxPtrsOne.Edi = &pctx->Edi; + pRD->ctxPtrsOne.Ebp = &pctx->Ebp; #else // _TARGET_X86_ PORTABILITY_ASSERT("FillRegDisplay"); #endif // _TARGET_???_ (ELSE) |