diff options
author | Vedant Kumar <vsk@apple.com> | 2017-05-31 21:47:52 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-05-31 21:47:52 +0000 |
commit | 877e3cefb88ae0b76320171f2c1c30e38eb35c3b (patch) | |
tree | 4ed8d9fcf700dfc0c1e72735a068bb52a458b1d8 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | f9645c3a92147cd1d3a5e8fee1ef6d25673f6b42 (diff) | |
download | llvm-877e3cefb88ae0b76320171f2c1c30e38eb35c3b.zip llvm-877e3cefb88ae0b76320171f2c1c30e38eb35c3b.tar.gz llvm-877e3cefb88ae0b76320171f2c1c30e38eb35c3b.tar.bz2 |
Avoid a UB pointer overflow in the ArrayRef unit test
The intent of the test is to check that array lengths greater than
UINT_MAX work properly. Change the test to stress that scenario, without
triggering pointer overflow UB.
Caught by a WIP pointer overflow checker in clang.
Differential Revision: https://reviews.llvm.org/D33149
llvm-svn: 304353
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions