[clang] Fix noderef for AddrOf on MemberExpr
authorJann Horn <jannh@google.com>
Mon, 7 Dec 2020 22:48:41 +0000 (14:48 -0800)
committerLeonard Chan <leonardchan@google.com>
Mon, 7 Dec 2020 22:48:41 +0000 (14:48 -0800)
commit6dad7ec539cbcf6f59b63753a86b8015bd6ea66f
tree3b22eaa1dae630c52dfad36ff9dccb42e6b1c8ad
parent641ede93efd664cc2e1d1788b195a80b50b36f66
[clang] Fix noderef for AddrOf on MemberExpr

Committing on behalf of thejh (Jann Horn).

As part of this change, one existing test case has to be adjusted
because it accidentally stripped the NoDeref attribute without
getting caught.

Depends on D92140

Differential Review: https://reviews.llvm.org/D92141
clang/lib/Sema/SemaExprMember.cpp
clang/test/Frontend/noderef.c