Skip to content

Commit 39dd6cd

Browse files
[ARM] Remove an unnecessary cast (NFC) (#148869)
TII is already of const ARMBaseInstrInfo *. This patch removes AII in favor of TII.
1 parent 7da8f73 commit 39dd6cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2542,9 +2542,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
25422542
}
25432543
case ARM::Int_eh_sjlj_dispatchsetup: {
25442544
MachineFunction &MF = *MI.getParent()->getParent();
2545-
const ARMBaseInstrInfo *AII =
2546-
static_cast<const ARMBaseInstrInfo*>(TII);
2547-
const ARMBaseRegisterInfo &RI = AII->getRegisterInfo();
2545+
const ARMBaseRegisterInfo &RI = TII->getRegisterInfo();
25482546
// For functions using a base pointer, we rematerialize it (via the frame
25492547
// pointer) here since eh.sjlj.setjmp and eh.sjlj.longjmp don't do it
25502548
// for us. Otherwise, expand to nothing.

0 commit comments

Comments
 (0)