mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a83a10835f
commit
c1deda50ca
@ -2824,7 +2824,7 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) {
|
||||
// X * Y (where Y is 0 or 1) -> X & (0-Y)
|
||||
if (!isa<VectorType>(I.getType())) {
|
||||
// -2 is "-1 << 1" so it is all bits set except the low one.
|
||||
APInt Negative2(I.getType()->getPrimitiveSizeInBits(), -2, true);
|
||||
APInt Negative2(I.getType()->getPrimitiveSizeInBits(), (uint64_t)-2, true);
|
||||
|
||||
Value *BoolCast = 0, *OtherOp = 0;
|
||||
if (MaskedValueIsZero(Op0, Negative2))
|
||||
|
Loading…
Reference in New Issue
Block a user