-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a typo in UnixNativeCodeManager.cpp #111103
base: main
Are you sure you want to change the base?
Conversation
Change-Id: I6ae5074b310611955dc8a95fb9c67223af7a25f1
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
@agocke please have a look. |
This is included in #111086 |
@@ -1248,7 +1248,7 @@ bool UnixNativeCodeManager::GetReturnAddressHijackInfo(MethodInfo * pMethodIn | |||
} | |||
|
|||
*ppvRetAddrLocation = (PTR_PTR_VOID)pRegisterSet->pLR; | |||
#elif | |||
#else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is identical between the #if
and #else
, except for the register name.
Would it be better to add delete this ifdef and add a helper method method to LoongArch and Arm reg displays to abstract away the difference?
inline uintptr_t* GetReturnAddressRegisterLocation() { return pLR; }
...
inline uintptr_t* GetReturnAddressRegisterLocation() { return pRA; }
Fix a typo introduced from #110799.
@shushanhf @LuckyXu-HF