This is an archive of the discontinued LLVM Phabricator instance.

[Diagnostics] Teach -Wnull-dereference about address_space attribute
AbandonedPublic

Authored by xbolva00 on Nov 1 2019, 4:55 AM.

Details

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.

[libcxx] Disable -Wconstant-evaluated for libcxx's testsuite

Event Timeline

xbolva00 created this revision.Nov 1 2019, 4:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2019, 4:55 AM
xbolva00 abandoned this revision.Nov 1 2019, 4:59 AM

(mistake)