projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72d2fd5
)
Assigning an APInt to 0 with plain assignment gives it a one-bit
author
Dan Gohman
<gohman@apple.com>
Wed, 13 Feb 2008 23:07:24 +0000
(23:07 +0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 13 Feb 2008 23:07:24 +0000
(23:07 +0000)
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
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index 556aaac9eaec51d193d5dfee26e76d2841ff2880..7bfb30278811a2e78a01d10b00145ddbdc72c8d2 100644
(file)
--- 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: