diff options
author | Peter Steinfeld <psteinfeld@nvidia.com> | 2020-09-16 14:42:30 -0700 |
---|---|---|
committer | Peter Steinfeld <psteinfeld@nvidia.com> | 2020-09-16 14:56:23 -0700 |
commit | dd3eb3f33239b23a12dd8864ae236390adf79550 (patch) | |
tree | 34c3eeada8ece91774030e9b961f6d8c62e3c1ea /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 23bef7ee9923b1262326981960397e8cd95d6923 (diff) | |
download | llvm-dd3eb3f33239b23a12dd8864ae236390adf79550.zip llvm-dd3eb3f33239b23a12dd8864ae236390adf79550.tar.gz llvm-dd3eb3f33239b23a12dd8864ae236390adf79550.tar.bz2 |
[flang] Substrings with lower bound greater than upper bound
According to section 9.4.1, paragraph 3,
If the starting point is greater than the ending point, the substring has
length zero
But the compilers code for substring processing was failing a call to `CHECK()`
in this case. I fixed this by just setting the number of items in the
resulting string to 0 for this situation.
Differential Revision: https://reviews.llvm.org/D87799
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions