[NVPTX] Silence a GCC warning found by the buildbots
[oota-llvm.git] / lib / Target / NVPTX / NVPTXISelDAGToDAG.cpp
index aeda71ff0e9034869731ff3315d14ca8e0f17c9e..05205fba1affdcc6ce1f0476d3455349486c8e63 100644 (file)
@@ -98,7 +98,7 @@ bool NVPTXDAGToDAGISel::useF32FTZ() const {
 }
 
 bool NVPTXDAGToDAGISel::allowFMA() const {
-  const NVPTXTargetLowering *TL = (NVPTXTargetLowering *)getTargetLowering();
+  const NVPTXTargetLowering *TL = Subtarget.getTargetLowering();
   return TL->allowFMA(*MF, OptLevel);
 }