[llvm] r213793 - [NVPTX] Silence a GCC warning found by the buildbots
Justin Holewinski
jholewinski at nvidia.com
Wed Jul 23 13:23:47 PDT 2014
Author: jholewinski
Date: Wed Jul 23 15:23:47 2014
New Revision: 213793
URL: http://llvm.org/viewvc/llvm-project?rev=213793&view=rev
Log:
[NVPTX] Silence a GCC warning found by the buildbots
The cast to NVPTXTargetLowering was missing a 'const', but let's
just access the right pointer through the subtarget anyway.
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp?rev=213793&r1=213792&r2=213793&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp Wed Jul 23 15:23:47 2014
@@ -98,7 +98,7 @@ bool NVPTXDAGToDAGISel::useF32FTZ() cons
}
bool NVPTXDAGToDAGISel::allowFMA() const {
- const NVPTXTargetLowering *TL = (NVPTXTargetLowering *)getTargetLowering();
+ const NVPTXTargetLowering *TL = Subtarget.getTargetLowering();
return TL->allowFMA(*MF, OptLevel);
}
More information about the llvm-commits
mailing list