changed so an APInt's trunc(~) method can't be called with a shift amount of 0.