Fix APInt::countTrailingZeros to return BitWidth if the input is zero instead of...
authorChris Lattner <sabre@nondot.org>
Fri, 23 Nov 2007 22:36:25 +0000 (22:36 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Nov 2007 22:36:25 +0000 (22:36 +0000)
commit5e557123ad3779e540fc795e083bad6be5a1c764
treecdeb0242e8f408689767d847bed6bc03e9d00c56
parent148083a529c44e8146ffc9863fb45ed7f6ef7e07
Fix APInt::countTrailingZeros to return BitWidth if the input is zero instead of returning some random large number.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44294 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp