Skip to content
Commit ec39eb85 authored by Torok Edwin's avatar Torok Edwin
Browse files

APInt's countLeadingOnes() was broken for negative i128 values,

causing assertion failures in getSExtValue().
Fix it by making highWordBits actually contain what its name says,
and add some more unit-tests for APInt.
This fixes PR3419.

llvm-svn: 63107
parent ed2ba0fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment