[llvm] 39dd6cd - [ARM] Remove an unnecessary cast (NFC) (#148869)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 20:47:41 PDT 2025
Author: Kazu Hirata
Date: 2025-07-15T20:47:38-07:00
New Revision: 39dd6cdd57b2587c48cbea01838d77611055e72f
URL: https://github.com/llvm/llvm-project/commit/39dd6cdd57b2587c48cbea01838d77611055e72f
DIFF: https://github.com/llvm/llvm-project/commit/39dd6cdd57b2587c48cbea01838d77611055e72f.diff
LOG: [ARM] Remove an unnecessary cast (NFC) (#148869)
TII is already of const ARMBaseInstrInfo *. This patch removes AII in
favor of TII.
Added:
Modified:
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index 52302241fe365..57141ab69223f 100644
--- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
@@ -2542,9 +2542,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
}
case ARM::Int_eh_sjlj_dispatchsetup: {
MachineFunction &MF = *MI.getParent()->getParent();
- const ARMBaseInstrInfo *AII =
- static_cast<const ARMBaseInstrInfo*>(TII);
- const ARMBaseRegisterInfo &RI = AII->getRegisterInfo();
+ const ARMBaseRegisterInfo &RI = TII->getRegisterInfo();
// For functions using a base pointer, we rematerialize it (via the frame
// pointer) here since eh.sjlj.setjmp and eh.sjlj.longjmp don't do it
// for us. Otherwise, expand to nothing.
More information about the llvm-commits
mailing list