diff options
Diffstat (limited to 'llvm/lib/Target/ARM/MVEVPTBlockPass.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/MVEVPTBlockPass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp b/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp index c7f451cba14f..d6d43b9143d6 100644 --- a/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp +++ b/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp @@ -312,8 +312,7 @@ bool MVEVPTBlock::InsertVPTBlocks(MachineBasicBlock &Block) { } bool MVEVPTBlock::runOnMachineFunction(MachineFunction &Fn) { - const ARMSubtarget &STI = - static_cast<const ARMSubtarget &>(Fn.getSubtarget()); + const ARMSubtarget &STI = Fn.getSubtarget<ARMSubtarget>(); if (!STI.isThumb2() || !STI.hasMVEIntegerOps()) return false; |
