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)
llvm-svn: 210865

llvm/lib/Target/R600/AMDGPUInstrInfo.cpp

index 1c3361a..0e1afb0 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;
 }