[PATCH] D65256: [Sema][ObjC] Mark C union fields that have non-trivial ObjC ownership qualifications as unavailable if the union is declared in a system header
Jordan Rose via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 25 11:50:40 PDT 2019
jordan_rose added a comment.
In D65256#1601509 <https://reviews.llvm.org/D65256#1601509>, @rjmccall wrote:
> Sorry, am I missing something? Such a union would've been either ill-formed or unavailable in ARC (depending on where it was declared) before this recent work.
Apparently that was not the case if it was in a system header. Instead, Clang marked the //member// unavailable rather than the entire union.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65256/new/
https://reviews.llvm.org/D65256
More information about the cfe-commits
mailing list