aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2020-05-14 21:34:33 -0400
committerValentin Clement <clementval@gmail.com>2020-05-14 21:37:25 -0400
commit85725a67c745cb833174a7eae2aa53e74753bcb1 (patch)
tree05559bcba67aa7e17d560c2ff6731fb853123ce8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentbf02bcffcfd7dc965e930c6a3035895823d2d78b (diff)
downloadllvm-85725a67c745cb833174a7eae2aa53e74753bcb1.zip
llvm-85725a67c745cb833174a7eae2aa53e74753bcb1.tar.gz
llvm-85725a67c745cb833174a7eae2aa53e74753bcb1.tar.bz2
[Flang][OpenMP] Avoid abort when collapse clause value is negative
Summary: If the value in the collapse close is negative f18 abort without the correct error message. This PR change the size_t in name resolution to a int64_t and check appropriately for negative or zero before the privatization of induction variable. The correct error is then catch by the OpenMP structure check. This diff is migrated from the GitHub pull request https://github.com/flang-compiler/f18/pull/1098 Reviewers: ichoyjx, jdoerfert, sscalpone, DavidTruby Reviewed By: ichoyjx, sscalpone, DavidTruby Subscribers: sscalpone, klausler, yaxunl, guansong, llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D77821
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions