R600: Drop use of cached TargetMachine in AMDGPUInstrInfo.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tom Stellard 2014-06-13 01:02:57 +00:00
parent 7f8d138f50
commit aa48b83e80

View File

@ -320,7 +320,7 @@ int AMDGPUInstrInfo::getIndirectIndexEnd(const MachineFunction &MF) const {
return -1;
}
Offset = TM.getFrameLowering()->getFrameIndexOffset(MF, -1);
Offset = MF.getTarget().getFrameLowering()->getFrameIndexOffset(MF, -1);
return getIndirectIndexBegin(MF) + Offset;
}