diff options
| author | Torok Edwin <edwintorok@gmail.com> | 2009-01-27 18:06:03 +0000 |
|---|---|---|
| committer | Torok Edwin <edwintorok@gmail.com> | 2009-01-27 18:06:03 +0000 |
| commit | ec39eb851984f5ddcabfcde7cb8e28bf4f442261 (patch) | |
| tree | 3bf202eb0590baf6b92406f9750c8616fb0ca15a /clang/lib/AST/ExprConstant.cpp | |
| parent | ed2ba0fb015c02c5d6427b0b2b29143656cf54c1 (diff) | |
| download | bcm5719-llvm-ec39eb851984f5ddcabfcde7cb8e28bf4f442261.tar.gz bcm5719-llvm-ec39eb851984f5ddcabfcde7cb8e28bf4f442261.zip | |
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
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions

