mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
Use clear() to zero an existing APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
719de53742
commit
317adcc9c6
@ -1406,7 +1406,7 @@ void SelectionDAG::ComputeMaskedBits(SDOperand Op, const APInt &Mask,
|
||||
case ISD::CTPOP: {
|
||||
unsigned LowBits = Log2_32(BitWidth)+1;
|
||||
KnownZero = APInt::getHighBitsSet(BitWidth, BitWidth - LowBits);
|
||||
KnownOne = APInt(BitWidth, 0);
|
||||
KnownOne.clear();
|
||||
return;
|
||||
}
|
||||
case ISD::LOAD: {
|
||||
|
Loading…
Reference in New Issue
Block a user