diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-02-17 04:48:52 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-02-17 04:48:52 +0000 |
commit | ca2cfd0bd86890d3dcc989b325d36b72e258a200 (patch) | |
tree | ec4be211105a46b73834bcbfe1687a9a1ebd0a9d /libcxx/test/std/strings/string.view/nothing_to_do.pass.cpp | |
parent | 908e2d90095b27edd20c8f4a04ca2a56ae80b8b7 (diff) | |
download | bcm5719-llvm-ca2cfd0bd86890d3dcc989b325d36b72e258a200.tar.gz bcm5719-llvm-ca2cfd0bd86890d3dcc989b325d36b72e258a200.zip |
[ScopInfo] Do not try to fold array dimensions of size zero
Trying to fold such kind of dimensions will result in a division by zero,
which crashes the compiler. As such arrays are likely to invalidate the
scop anyhow (but are not illegal in LLVM-IR), there is no point in trying
to optimize the array layout. Hence, we just avoid the folding of
constant dimensions of size zero.
llvm-svn: 295415
Diffstat (limited to 'libcxx/test/std/strings/string.view/nothing_to_do.pass.cpp')
0 files changed, 0 insertions, 0 deletions