diff options
author | Dan Gohman <gohman@apple.com> | 2008-02-13 23:07:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-02-13 23:07:24 +0000 |
commit | f4f92f5ebe579ded661ec4c311f65e316405d0e6 (patch) | |
tree | 4b2c2b681719daa6eaaecfa8c506e1bcc2b2eec7 | |
parent | 72d2fd57b67b8afc6ddf6314c483a9d2ec71569a (diff) |
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
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 556aaac9ea..7bfb302788 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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: |