summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-02-25 20:30:45 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-02-25 20:30:45 +0000
commit39a684d1179398a43bf1d241610a681dfaa5250f (patch)
treed7aea911075dab857fb11c6debc722ed869c2ad5 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parent0f5fb5f54909c4dc2b7739124c6d6799098f2806 (diff)
downloadbcm5719-llvm-39a684d1179398a43bf1d241610a681dfaa5250f.tar.gz
bcm5719-llvm-39a684d1179398a43bf1d241610a681dfaa5250f.zip
[ValueTracking] Don't do an unchecked shift in ComputeNumSignBits
Summary: Previously we used to return a bogus result, 0, for IR like `ashr %val, -1`. I've also added an assert checking that `ComputeNumSignBits` at least returns 1. That assert found an already checked in test case where we were returning a bad result for `ashr %val, -1`. Fixes PR32045. Reviewers: spatel, majnemer Reviewed By: spatel, majnemer Subscribers: efriedma, mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D30311 llvm-svn: 296273
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud