[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

Roland McGrath via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 3 19:07:08 PDT 2018


mcgrathr added a comment.

The motivating use case always pairs `noderef` with an `address_space` attribute, and it's already invalid to convert between pointer types in different address spaces without a cast.
So I don't think we have a strong opinion one way or the other.  In the abstract, I'd say `noderef` feels like a "constraining" qualifier a la const/volatile so that going from unconstrained to constrained implicitly is OK but not vice versa.


Repository:
  rC Clang

https://reviews.llvm.org/D49511





More information about the cfe-commits mailing list