From 51fea81b26852f0b890e64dc5e8d439685000324 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 13 Mar 2015 00:49:50 +0000 Subject: [PATCH] Use the cached subtarget off of the machine function. llvm-svn: 232129 --- lib/CodeGen/StackMaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/StackMaps.cpp b/lib/CodeGen/StackMaps.cpp index 5d4641956b4..6422f1fe418 100644 --- a/lib/CodeGen/StackMaps.cpp +++ b/lib/CodeGen/StackMaps.cpp @@ -123,7 +123,7 @@ StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI, assert(TargetRegisterInfo::isPhysicalRegister(MOI->getReg()) && "Virtreg operands should have been rewritten before now."); const TargetRegisterClass *RC = - AP.TM.getSubtargetImpl()->getRegisterInfo()->getMinimalPhysRegClass( + AP.MF->getSubtarget().getRegisterInfo()->getMinimalPhysRegClass( MOI->getReg()); assert(!MOI->getSubReg() && "Physical subreg still around."); Locs.push_back(