From 0ba4483d01a0ac1c88edd4fe7c7548ec1fa558a7 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 14 Oct 2014 08:44:19 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1