[clang] [clang][PAC] Add __builtin_get_vtable_pointer (PR #139790)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 3 05:32:12 PDT 2025


================
@@ -3074,6 +3074,39 @@ following way:
 
 Query for this feature with ``__has_builtin(__builtin_offsetof)``.
 
+``__builtin_get_vtable_pointer``
+--------------------------------
+
+``__builtin_get_vtable_pointer`` loads and authenticates the primary vtable
+pointer from an instance of a polymorphic C++ class.
----------------
cor3ntin wrote:

Do we have general Ptrauth documentation we can cross-reference?

https://github.com/llvm/llvm-project/pull/139790


More information about the cfe-commits mailing list