Skip to content

Commit 1956941

Browse files
[ARM] Remove an unnecessary cast (NFC) (#156203)
getInstrInfo() already returns const ARMBaseInstrInfo *.
1 parent fc925ed commit 1956941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMBlockPlacement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool ARMBlockPlacement::runOnMachineFunction(MachineFunction &MF) {
218218
return false;
219219
LLVM_DEBUG(dbgs() << DEBUG_PREFIX << "Running on " << MF.getName() << "\n");
220220
MLI = &getAnalysis<MachineLoopInfoWrapperPass>().getLI();
221-
TII = static_cast<const ARMBaseInstrInfo *>(ST.getInstrInfo());
221+
TII = ST.getInstrInfo();
222222
BBUtils = std::make_unique<ARMBasicBlockUtils>(MF);
223223
MF.RenumberBlocks();
224224
BBUtils->computeAllBlockSizes();

0 commit comments

Comments
 (0)