[llvm-branch-commits] [libcxx] fe4580e - [PAC][libc++] Fix build with `ptrauth_calls` feature (#211033)

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 22 23:04:23 PDT 2026


Author: Daniil Kovalev
Date: 2026-07-23T08:04:13+02:00
New Revision: fe4580e97f23cabe4c1664888aad78875ef8b7f1

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

LOG: [PAC][libc++] Fix build with `ptrauth_calls` feature (#211033)

After partial revert of #208330 in #209928, the libcxx build started
failing because of missing `<cstdint>` include required for `uintptr_t`
declaration used only by code behind `ptrauth_calls` feature check. See
https://lab.llvm.org/buildbot/#/builders/227/builds/3358

This patch adds the missing include.

(cherry picked from commit 12e1c7f70f34d59c023d05d0fe2c228a4e9aac11)

Added: 
    

Modified: 
    libcxx/src/include/overridable_function.h

Removed: 
    


################################################################################
diff  --git a/libcxx/src/include/overridable_function.h b/libcxx/src/include/overridable_function.h
index e430ccda29f65..307405812f9af 100644
--- a/libcxx/src/include/overridable_function.h
+++ b/libcxx/src/include/overridable_function.h
@@ -114,6 +114,7 @@ _LIBCPP_END_NAMESPACE_STD
 
 #  else // __has_feature(ptrauth_calls)
 
+#    include <cstdint>
 #    include <ptrauth.h>
 
 #    if defined(_LIBCPP_OBJECT_FORMAT_MACHO)


        


More information about the llvm-branch-commits mailing list