Use the target lowering we can get off of the DAG rather than off
authorEric Christopher <echristo@gmail.com>
Fri, 27 Jun 2014 03:45:49 +0000 (03:45 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 27 Jun 2014 03:45:49 +0000 (03:45 +0000)
of the cached target machine.

llvm-svn: 211858

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

index 0e3e0d5..60da5f1 100644 (file)
@@ -1501,7 +1501,7 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
 
   const Function *F = MF.getFunction();
   const AttributeSet &PAL = F->getAttributes();
-  const TargetLowering *TLI = nvTM->getTargetLowering();
+  const TargetLowering *TLI = DAG.getTarget().getTargetLowering();
 
   SDValue Root = DAG.getRoot();
   std::vector<SDValue> OutChains;