aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKarl-Johan Karlsson <karl-johan.karlsson@ericsson.com>2023-08-23 08:25:51 +0200
committerKarl-Johan Karlsson <karl-johan.karlsson@ericsson.com>2023-08-23 08:57:18 +0200
commitff14585eb02f96b78a2544f8bcddd2685202cc56 (patch)
tree35b5ac21ef54739ef346bf6562e0cc5c36d56ae1 /flang/lib/Frontend/CompilerInvocation.cpp
parent34e3bc0b92d7fdc59477c93d187546a2566fbc22 (diff)
downloadllvm-ff14585eb02f96b78a2544f8bcddd2685202cc56.zip
llvm-ff14585eb02f96b78a2544f8bcddd2685202cc56.tar.gz
llvm-ff14585eb02f96b78a2544f8bcddd2685202cc56.tar.bz2
[builtins] Avoid undefined behavior when calculating absolute value in floatsidf.c and floatsisf.c
When compiling compiler-rt with -fsanitize=undefined and running testcases you end up with the following warning: UBSan: floatsidf.c:32:9: negation of -2147483648 cannot be represented in type 'si_int' (aka 'long'); cast to an unsigned type to negate this value to itself The same kind of pattern exists in floatsisf.c This was found in an out of tree target. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D146123
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions