Assigning an APInt to 0 with plain assignment gives it a one-bit

size. Initialize these APInts to properly-sized zero values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-02-13 23:07:24 +00:00
parent 72d2fd57b6
commit f4f92f5ebe

View File

@ -5653,7 +5653,7 @@ void X86TargetLowering::computeMaskedBitsForTargetNode(const SDOperand Op,
"Should use MaskedValueIsZero if you don't know whether Op"
" is a target node!");
KnownZero = KnownOne = 0; // Don't know anything.
KnownZero = KnownOne = APInt(Mask.getBitWidth(), 0); // Don't know anything.
switch (Opc) {
default: break;
case X86ISD::SETCC: