Use the cached subtarget off of the machine function.

llvm-svn: 232129
This commit is contained in:
Eric Christopher 2015-03-13 00:49:50 +00:00
parent 5ab3b79ba8
commit ef9e01eada
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI,
assert(TargetRegisterInfo::isPhysicalRegister(MOI->getReg()) && assert(TargetRegisterInfo::isPhysicalRegister(MOI->getReg()) &&
"Virtreg operands should have been rewritten before now."); "Virtreg operands should have been rewritten before now.");
const TargetRegisterClass *RC = const TargetRegisterClass *RC =
AP.TM.getSubtargetImpl()->getRegisterInfo()->getMinimalPhysRegClass( AP.MF->getSubtarget().getRegisterInfo()->getMinimalPhysRegClass(
MOI->getReg()); MOI->getReg());
assert(!MOI->getSubReg() && "Physical subreg still around."); assert(!MOI->getSubReg() && "Physical subreg still around.");
Locs.push_back( Locs.push_back(