aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ToolOutputFileTest.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2022-06-02 14:06:57 -0700
committerPeter Klausler <pklausler@nvidia.com>2022-06-04 11:02:48 -0700
commit562fd2c99b70691affe7776a1900e95ee7da0b3b (patch)
treea2cb3498d56f0ea4e2700b38212a06cb93240929 /llvm/unittests/Support/ToolOutputFileTest.cpp
parent11f928af9bfaefc0965a43f5ad6d480ded3de4a5 (diff)
downloadllvm-562fd2c99b70691affe7776a1900e95ee7da0b3b.zip
llvm-562fd2c99b70691affe7776a1900e95ee7da0b3b.tar.gz
llvm-562fd2c99b70691affe7776a1900e95ee7da0b3b.tar.bz2
[flang][runtime] Emit error message rather than crashing for MOD(ULO)(x,P=0)
Add extra arguments and checks to the runtime support library so that a call to the intrinsic functions MOD and MODULO with "denominator" argument P of zero will cause a crash with a source location rather than an uninformative floating-point error or integer division by zero signal. Additional work is required in lowering to (1) pass source file path and source line number arguments and (2) actually call these runtime library APIs instead of emitting inline code for MOD &/or MODULO. Differential Revision: https://reviews.llvm.org/D127034
Diffstat (limited to 'llvm/unittests/Support/ToolOutputFileTest.cpp')
0 files changed, 0 insertions, 0 deletions