Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chenguohui
Copy link
Contributor

Fix a typo introduced from #110799.

@shushanhf @LuckyXu-HF

Change-Id: I6ae5074b310611955dc8a95fb9c67223af7a25f1
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jan 6, 2025
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@chenguohui
Copy link
Contributor Author

@agocke please have a look.

@huoyaoyuan
Copy link
Member

This is included in #111086

@chenguohui
Copy link
Contributor Author

This is included in #111086

Thanks, I'll close this PR when #111086 merged.

@@ -1248,7 +1248,7 @@ bool UnixNativeCodeManager::GetReturnAddressHijackInfo(MethodInfo * pMethodIn
}

*ppvRetAddrLocation = (PTR_PTR_VOID)pRegisterSet->pLR;
#elif
#else
Copy link
Member

@jkotas jkotas Jan 6, 2025

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; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants