diff options
| author | Justin Lebar <jlebar@google.com> | 2016-07-17 18:19:21 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-07-17 18:19:21 +0000 |
| commit | cbba3c4aefe92e5d2f6aa2b7fe8062e47fc28b57 (patch) | |
| tree | e7457b63c44def2021bc55022996fa0646556367 /libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp | |
| parent | f2d0066af751cf097a17e970e825475cb06be5bf (diff) | |
| download | bcm5719-llvm-cbba3c4aefe92e5d2f6aa2b7fe8062e47fc28b57.tar.gz bcm5719-llvm-cbba3c4aefe92e5d2f6aa2b7fe8062e47fc28b57.zip | |
Fix isShiftedInt and isShiftedUint for widths > 32.
Summary:
Previously we were doing 1 << S. "1" is an int, so this doesn't work
when S >= 32.
This patch also adds some static_asserts to these functions to ensure
that we don't hit UB by shifting left too much.
Reviewers: rnk
Subscribers: llvm-commits, dylanmckay
Differential Revision: https://reviews.llvm.org/D22441
llvm-svn: 275719
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp')
0 files changed, 0 insertions, 0 deletions

