aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/StructuralHash.cpp
diff options
context:
space:
mode:
authorCorentin Jabot <corentinjabot@gmail.com>2025-07-19 20:30:16 +0300
committerGitHub <noreply@github.com>2025-07-19 19:30:16 +0200
commitc43f828d59672b4844a7409e4660b9f8f509da35 (patch)
tree7c30b8a884c12611ed53c41c3dd66f1e2dc16811 /llvm/lib/Analysis/StructuralHash.cpp
parent1fcf49a35c4ffce2c0a8baf8a045c031f783ccff (diff)
downloadllvm-c43f828d59672b4844a7409e4660b9f8f509da35.zip
llvm-c43f828d59672b4844a7409e4660b9f8f509da35.tar.gz
llvm-c43f828d59672b4844a7409e4660b9f8f509da35.tar.bz2
[Clang] Be less strict about diagnosing null pointer dereference. (#149648)
In #143667, we made constant evaluation fail on `*null_ptr`, as this is UB. However, `&(*(foo*)0)` seems to be a common pattern, which made #143667 too disruptive. So instead of failing the evaluation, we note the UB, which let clang recovers when checking for constant initialization. Fixes #149500
Diffstat (limited to 'llvm/lib/Analysis/StructuralHash.cpp')
0 files changed, 0 insertions, 0 deletions