summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-21 22:02:15 +0000
committerDan Gohman <gohman@apple.com>2008-06-21 22:02:15 +0000
commit38c19aae38fb624974fc3823824cccb49aef9832 (patch)
tree18fb7399d17c6f8dec01e0fbb6e61a124e573bd3 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent1ac5813726b340d5de9f241a54eee044e27b6c34 (diff)
downloadbcm5719-llvm-38c19aae38fb624974fc3823824cccb49aef9832.tar.gz
bcm5719-llvm-38c19aae38fb624974fc3823824cccb49aef9832.zip
Use clear() to zero an existing APInt.
llvm-svn: 52601
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index bca5e756d45..abd72727e9c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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: {
OpenPOWER on IntegriCloud