[llvm] r183385 - Cast to the correct type. Pointer, not reference.

Bill Wendling isanbard at gmail.com
Wed Jun 5 22:39:29 PDT 2013


Author: void
Date: Thu Jun  6 00:39:29 2013
New Revision: 183385

URL: http://llvm.org/viewvc/llvm-project?rev=183385&view=rev
Log:
Cast to the correct type. Pointer, not reference.

Modified:
    llvm/trunk/lib/Target/R600/SIInstrInfo.td

Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.td?rev=183385&r1=183384&r2=183385&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.td (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.td Thu Jun  6 00:39:29 2013
@@ -44,7 +44,7 @@ def IMM12bit : PatLeaf <(imm),
 >;
 
 class InlineImm <ValueType vt> : PatLeaf <(vt imm), [{
-  return ((const SITargetLowering &)TLI).analyzeImmediate(N) == 0;
+  return (*(const SITargetLowering *)TLI).analyzeImmediate(N) == 0;
 }]>;
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list