Cast to the proper type.
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Jun 2013 01:04:21 +0000 (01:04 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Jun 2013 01:04:21 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183365 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDILISelDAGToDAG.cpp

index 82f1c7e305aae0e18f6f46b80e9e18efb80043e9..554131ab0286dbcc8feacc1a3a2f95847e135168 100644 (file)
@@ -751,7 +751,7 @@ void AMDGPUDAGToDAGISel::PostprocessISelDAG() {
   }
 
   // Go over all selected nodes and try to fold them a bit more
-  const AMDGPUTargetLowering& Lowering = ((const AMDGPUTargetLowering&)TLI);
+  const AMDGPUTargetLowering& Lowering = (*(const AMDGPUTargetLowering*)TLI);
   for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(),
        E = CurDAG->allnodes_end(); I != E; ++I) {