Cast to the correct type. Pointer, not reference.

llvm-svn: 183385
This commit is contained in:
Bill Wendling 2013-06-06 05:39:29 +00:00
parent ea8d370d2a
commit b91216817f
1 changed files with 1 additions and 1 deletions

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