projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use clear() to zero an existing APInt.
[oota-llvm.git]
/
lib
/
CodeGen
/
SelectionDAG
/
SelectionDAG.cpp
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index bca5e756d457a3a267752336cd0b36f42fafab3c..abd72727e9c906b339be9e1fae9d16b982dcf217 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@
-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: {