Fix PR1816, by correcting the broken definition of APInt::countTrailingZeros.