[PATCH] D150875: Make dereferencing a void* a hard-error instead of warn-as-error

Jessica Clarke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 18 10:16:54 PDT 2023


jrtc27 added a comment.

We heavily rely on this extension in CheriBSD via `__typeof__((*(p))) * __capability` as we want to be able to take any pointer, including to an array or function that needs to undergo decay to be an actual pointer, and turn it into a `__capability`-qualified one. Presumably you're saying we should instead use `__typeof((0, (p)))__ __capability` as an uglier alternative way to force decay?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150875/new/

https://reviews.llvm.org/D150875



More information about the cfe-commits mailing list