diff options
author | Corentin Jabot <corentinjabot@gmail.com> | 2025-07-19 20:30:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-19 19:30:16 +0200 |
commit | c43f828d59672b4844a7409e4660b9f8f509da35 (patch) | |
tree | 7c30b8a884c12611ed53c41c3dd66f1e2dc16811 /llvm/tools/llvm-cov/SourceCoverageViewText.h | |
parent | 1fcf49a35c4ffce2c0a8baf8a045c031f783ccff (diff) | |
download | llvm-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/tools/llvm-cov/SourceCoverageViewText.h')
0 files changed, 0 insertions, 0 deletions