[PATCH] D108479: [Clang] Add __builtin_addressof_nocfi

Sami Tolvanen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 24 10:07:49 PST 2021


samitolvanen planned changes to this revision.
samitolvanen added a comment.

In D108479#3150298 <https://reviews.llvm.org/D108479#3150298>, @rjmccall wrote:

> Your builtin is using custom type-checking (`t`), which suppresses all the normal conversions that happen on expressions.  Specifically, it skips lvalue-to-rvalue conversion, so in this example the argument ends up being an l-value reference to a variable rather than an r-value loaded from that variable.

OK, that explains it. Thanks for the explanation!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108479



More information about the cfe-commits mailing list