aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-01-09 09:23:23 +0100
committerGitHub <noreply@github.com>2025-01-09 09:23:23 +0100
commit4847395c5459f9c476808f9337abdae7fbd78a23 (patch)
tree408a45a6a48cfe7b474f7dcc4ee2f0195802c7db /llvm/lib/Transforms/Utils/Local.cpp
parent397ac44f623f891d8f05d6673a95984ac0a26671 (diff)
downloadllvm-4847395c5459f9c476808f9337abdae7fbd78a23.zip
llvm-4847395c5459f9c476808f9337abdae7fbd78a23.tar.gz
llvm-4847395c5459f9c476808f9337abdae7fbd78a23.tar.bz2
[Clang] Adjust pointer-overflow sanitizer for N3322 (#120719)
N3322 makes NULL + 0 well-defined in C, matching the C++ semantics. Adjust the pointer-overflow sanitizer to no longer report NULL + 0 as a pointer overflow in any language mode. NULL + nonzero will of course continue to be reported. As N3322 is part of https://www.open-std.org/jtc1/sc22/wg14/www/previous.html, and we never performed any optimizations based on NULL + 0 being undefined in the first place, I'm applying this change to all C versions.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions