[PATCH] D108479: [Clang] Add __builtin_addressof_nocfi
Peter Collingbourne via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 5 16:05:37 PDT 2021
pcc added subscribers: rjmccall, rsmith.
pcc added a comment.
(Adding back @rsmith, @rjmccall.)
In D108479#3113035 <https://reviews.llvm.org/D108479#3113035>, @samitolvanen wrote:
> In D108479#3112492 <https://reviews.llvm.org/D108479#3112492>, @rjmccall wrote:
>
>> You could also make this Just Work for things like C++ member functions rather than producing a member function pointer.
>
> I'm not sure I understand. What does Just Work mean when it comes to C++ member functions?
I think he means that e.g. `__builtin_symbol_address(&Foo::bar)` should return a `void*` pointing to the address of the `Foo::bar` member function body, instead of a member function pointer for `Foo::bar`.
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