diff --git a/llvm/lib/Target/ARM/ARMBlockPlacement.cpp b/llvm/lib/Target/ARM/ARMBlockPlacement.cpp index ec907995e3abc..3d8ebfeae81da 100644 --- a/llvm/lib/Target/ARM/ARMBlockPlacement.cpp +++ b/llvm/lib/Target/ARM/ARMBlockPlacement.cpp @@ -218,7 +218,7 @@ bool ARMBlockPlacement::runOnMachineFunction(MachineFunction &MF) { return false; LLVM_DEBUG(dbgs() << DEBUG_PREFIX << "Running on " << MF.getName() << "\n"); MLI = &getAnalysis().getLI(); - TII = static_cast(ST.getInstrInfo()); + TII = ST.getInstrInfo(); BBUtils = std::make_unique(MF); MF.RenumberBlocks(); BBUtils->computeAllBlockSizes();