Have MachineFunction cache a pointer to the subtarget to make lookups
[oota-llvm.git] / lib / Target / NVPTX / NVPTXISelLowering.cpp
index 1e2d8712162a0c3a43c05290e6490dfde6f1794e..55951e64a3894e063a432f00b19e3f1fa736b976 100644 (file)
@@ -2028,8 +2028,7 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
 
   const Function *F = MF.getFunction();
   const AttributeSet &PAL = F->getAttributes();
-  const TargetLowering *TLI =
-      DAG.getTarget().getSubtargetImpl()->getTargetLowering();
+  const TargetLowering *TLI = DAG.getSubtarget().getTargetLowering();
 
   SDValue Root = DAG.getRoot();
   std::vector<SDValue> OutChains;