summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-01 15:10:25 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-01 15:10:25 +0000
commit4d5050b5ba3d6cb4bfc1ae858b38355a9172ecd9 (patch)
tree015a3e32fddf5fabcb372526d881e8b29d315b72 /lldb/packages/Python/lldbsuite/test/python_api
parent43d8fd38be0f26da35f019e8c98618057655e4f3 (diff)
downloadbcm5719-llvm-4d5050b5ba3d6cb4bfc1ae858b38355a9172ecd9.tar.gz
bcm5719-llvm-4d5050b5ba3d6cb4bfc1ae858b38355a9172ecd9.zip
[InstCombine] Remove explicit check for impossible condition. Replace with assert
Summary: As far as I can tell the earlier call getLimitedValue will guaranteed ShiftAmt is saturated to BitWidth-1 preventing it from ever being equal or greater than BitWidth. At one point in the past the getLimitedValue call was only passed BitWidth not BitWidth - 1. This would have allowed the equality case to get here. And in fact this check was initially added as just BitWidth == ShiftAmt, but was changed shortly after to include > which should have never been possible. Reviewers: spatel, majnemer, davide Reviewed By: davide Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36123 llvm-svn: 309690
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud