summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/smartptr
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-16 01:03:51 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-16 01:03:51 +0000
commit9edfb08d935a3d4c2bd662732cd5a93254452f51 (patch)
tree6cc6b3355884da028cd5cb5b01d21a0022f6d059 /libcxx/test/std/utilities/smartptr
parent909b3376ba266bb75f46d007035e8ede8f03a8b6 (diff)
downloadbcm5719-llvm-9edfb08d935a3d4c2bd662732cd5a93254452f51.tar.gz
bcm5719-llvm-9edfb08d935a3d4c2bd662732cd5a93254452f51.zip
[APInt] Fix a bug in lshr by a value more than 64 bits above the bit width.
This was throwing an assert because we determined the intra-word shift amount by subtracting the size of the full word shift from the total shift amount. But we failed to account for the fact that we clipped the full word shifts by total words first. To fix this just calculate the intra-word shift as the remainder of dividing by bits per word. llvm-svn: 300405
Diffstat (limited to 'libcxx/test/std/utilities/smartptr')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud