- Notifications
You must be signed in to change notification settings - Fork14.5k
[AArch64] Remove an unnecessary cast (NFC)#148532
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[AArch64] Remove an unnecessary cast (NFC)#148532
Uh oh!
There was an error while loading.Please reload this page.
Conversation
getRegisterInfo() already returns const AArch64RegisterInfo *.
@llvm/pr-subscribers-backend-aarch64 Author: Kazu Hirata (kazutakahirata) ChangesgetRegisterInfo() already returns const AArch64RegisterInfo *. Full diff:https://github.com/llvm/llvm-project/pull/148532.diff 1 Files Affected:
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cppindex 00fbeef9d35df..0179be4894c92 100644--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp@@ -731,8 +731,7 @@ void AArch64FrameLowering::resetCFIToInitialState( MachineFunction &MF = *MBB.getParent(); const auto &Subtarget = MF.getSubtarget<AArch64Subtarget>();- const auto &TRI =- static_cast<const AArch64RegisterInfo &>(*Subtarget.getRegisterInfo());+ const auto &TRI = *Subtarget.getRegisterInfo(); const auto &MFI = *MF.getInfo<AArch64FunctionInfo>(); CFIInstBuilder CFIBuilder(MBB, MBB.begin(), MachineInstr::NoFlags); |
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.
LGTM
b97fad1
intollvm:mainUh oh!
There was an error while loading.Please reload this page.
getRegisterInfo() already returns const AArch64RegisterInfo *.