aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/M68k/M68kExpandPseudo.cpp')
-rw-r--r--llvm/lib/Target/M68k/M68kExpandPseudo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/M68k/M68kExpandPseudo.cpp b/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
index acfa30f28c2b..51a148f5aa04 100644
--- a/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
+++ b/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
@@ -302,7 +302,7 @@ bool M68kExpandPseudo::ExpandMBB(MachineBasicBlock &MBB) {
}
bool M68kExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
- STI = &static_cast<const M68kSubtarget &>(MF.getSubtarget());
+ STI = &MF.getSubtarget<M68kSubtarget>();
TII = STI->getInstrInfo();
TRI = STI->getRegisterInfo();
MFI = MF.getInfo<M68kMachineFunctionInfo>();