SuccessChanges

Summary

  1. [Diagnostics] Teach -Wnull-dereference about address_space attribute (details)
Commit 01b10bc7b14963902405d202ac78cd88d44adbc5 by Dávid Bolvanský
[Diagnostics] Teach -Wnull-dereference about address_space attribute
Summary: Clang should not warn for:
> test.c:2:12: warning: indirection of non-volatile null pointer will be
deleted,
>       not trap [-Wnull-dereference]
>     return *(int __attribute__((address_space(256))) *) 0;
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Solves PR42292.
Reviewers: aaron.ballman, rsmith
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69664
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/Sema/exprs.c