From: Eric Christopher Date: Tue, 14 Oct 2014 08:44:19 +0000 (+0000) Subject: Grab the subtarget info off of the MachineFunction rather than X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=0ba4483d01a0ac1c88edd4fe7c7548ec1fa558a7 Grab the subtarget info off of the MachineFunction rather than indirecting through the TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219674 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index 3d060eed177..c429ac18521 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -1853,7 +1853,7 @@ bool ARMPreAllocLoadStoreOpt::runOnMachineFunction(MachineFunction &Fn) { TD = Fn.getSubtarget().getDataLayout(); TII = Fn.getSubtarget().getInstrInfo(); TRI = Fn.getSubtarget().getRegisterInfo(); - STI = &Fn.getTarget().getSubtarget(); + STI = &static_cast(Fn.getSubtarget()); MRI = &Fn.getRegInfo(); MF = &Fn;