Cast to the correct type. Pointer, not reference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183385 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2013-06-06 05:39:29 +00:00
parent 0ac857462f
commit 2ed7659b88

View 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;
}]>;
//===----------------------------------------------------------------------===//