[llvm-branch-commits] [clang] 471d32f - [PAC][Headers] Fix incorrect comment in ptrauth.h (#207265)

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jul 28 23:27:59 PDT 2026


Author: Anatoly Trosinenko
Date: 2026-07-29T08:27:49+02:00
New Revision: 471d32fa96ebaf3d4768135f53a8301c70e36af7

URL: https://github.com/llvm/llvm-project/commit/471d32fa96ebaf3d4768135f53a8301c70e36af7
DIFF: https://github.com/llvm/llvm-project/commit/471d32fa96ebaf3d4768135f53a8301c70e36af7.diff

LOG: [PAC][Headers] Fix incorrect comment in ptrauth.h (#207265)

The discriminator which is used to sign pointers to v-tables
is not always zero.

(cherry picked from commit 26643a89ddf98e48e986d25ceb10f673735bc7d7)

Added: 
    

Modified: 
    clang/lib/Headers/ptrauth.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/ptrauth.h b/clang/lib/Headers/ptrauth.h
index 978c6737efeeb..32c089d830715 100644
--- a/clang/lib/Headers/ptrauth.h
+++ b/clang/lib/Headers/ptrauth.h
@@ -38,8 +38,7 @@ typedef enum {
      The extra data is always 0. */
   ptrauth_key_function_pointer = ptrauth_key_process_independent_code,
 
-  /* The key used to sign C++ v-table pointers.
-     The extra data is always 0. */
+  /* The key used to sign pointers to C++ v-tables. */
   ptrauth_key_cxx_vtable_pointer = ptrauth_key_process_independent_data,
 
   /* The key used to sign metadata pointers to Objective-C method-lists. */


        


More information about the llvm-branch-commits mailing list