[llvm-branch-commits] [clang] release/23.x: [PAC][Headers] Fix incorrect comment in ptrauth.h (#207265) (PR #212580)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 28 11:47:12 PDT 2026
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/212580
Backport 26643a89ddf98e48e986d25ceb10f673735bc7d7
Requested by: @atrosinenko
>From 8607894ec5eaddcbe5f9e625dad29896564fdbfc Mon Sep 17 00:00:00 2001
From: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
Date: Tue, 28 Jul 2026 21:35:41 +0300
Subject: [PATCH] [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)
---
clang/lib/Headers/ptrauth.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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