Cast to the correct type. Pointer, not reference.
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Jun 2013 05:39:29 +0000 (05:39 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Jun 2013 05:39:29 +0000 (05:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/SIInstrInfo.td

index cb159baef13484eb4ca88cb370d4b325bfafde9d..42fa95f6186bf51eb7e0449c0bd63a72b54caa12 100644 (file)
@@ -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;
 }]>;
 
 //===----------------------------------------------------------------------===//