R600: Drop use of cached TargetMachine in AMDGPUInstrInfo.cpp
authorTom Stellard <thomas.stellard@amd.com>
Fri, 13 Jun 2014 01:02:57 +0000 (01:02 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 13 Jun 2014 01:02:57 +0000 (01:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210865 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDGPUInstrInfo.cpp

index 1c3361a265811f0eb4dbfe233872569bcae2df14..0e1afb04905592415898cc1fd73b820583840b8d 100644 (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;
 }