[all-commits] [llvm/llvm-project] 01b10b: [Diagnostics] Teach -Wnull-dereference about addre...
Dávid Bolvanský via All-commits
all-commits at lists.llvm.org
Thu Nov 7 13:43:38 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 01b10bc7b14963902405d202ac78cd88d44adbc5
https://github.com/llvm/llvm-project/commit/01b10bc7b14963902405d202ac78cd88d44adbc5
Author: Dávid Bolvanský <david.bolvansky at gmail.com>
Date: 2019-11-07 (Thu, 07 Nov 2019)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
M clang/test/Sema/exprs.c
Log Message:
-----------
[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
More information about the All-commits
mailing list