[PATCH] D92141: Fix noderef for AddrOf on MemberExpr
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 16:37:53 PST 2020
leonardchan accepted this revision.
leonardchan added a comment.
This revision is now accepted and ready to land.
LGTM. Thanks
================
Comment at: clang/test/Frontend/noderef.c:75-76
+ // enclosing AddrOf.
+ p = &s->a; // ok
+ p = &(*s).a; // ok
+ p2 = &s->a; // expected-warning{{casting to dereferenceable pointer removes 'noderef' attribute}}
----------------
These two can probably be removed since we have
```
p = &s->a;
p = &(*s).b;
```
above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92141/new/
https://reviews.llvm.org/D92141
More information about the cfe-commits
mailing list