commit | 317adcc9c6b29fb491d615996ba70b5c415a9eb2 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Sat Jun 21 22:02:15 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Sat Jun 21 22:02:15 2008 +0000 |
tree | 18b2f138814376c1861bfd037955479cf3133b2b | |
parent | 719de53742167ca3f0e6b2efafb6eac18bd90452 [diff] [blame] |
Use clear() to zero an existing APInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52601 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index bca5e75..abd7272 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1406,7 +1406,7 @@ 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: {