]> granicus.if.org Git - llvm/commit
[APInt] Add back the asserts that check that the APInt shift methods aren't called...
authorCraig Topper <craig.topper@gmail.com>
Thu, 20 Apr 2017 02:03:09 +0000 (02:03 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 20 Apr 2017 02:03:09 +0000 (02:03 +0000)
commit69a88f72e90c8d51666bbca8867362d79c35302f
treee6a5ab29f44d8839521a9e1971e59d5a8533abcc
parentff09ea4e984baa63d4f3f6486b6e46cfdee8232e
[APInt] Add back the asserts that check that the APInt shift methods aren't called with values larger than BitWidth.

The underlying tcShiftRight/tcShiftLeft functions support the larger bit widths but the APInt interface shouldn't rely on that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300811 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
unittests/ADT/APIntTest.cpp