[libc-commits] [libc] [libc] Add dependency <stdint.h> to src/string/string_utils.h (PR #149849)

William Huynh via libc-commits libc-commits at lists.llvm.org
Mon Jul 21 09:52:58 PDT 2025


https://github.com/saturn691 created https://github.com/llvm/llvm-project/pull/149849

string_utils.h uses uintptr_t, and there seems to be no tracking of this dependency. It seems upstream builds are unaffected but downstream this is causing a lot of flaky builds.

>From f9e182354f5fcbfca692761bd9cd4213d9eb2c9a Mon Sep 17 00:00:00 2001
From: William Huynh <William.Huynh at arm.com>
Date: Mon, 21 Jul 2025 17:49:14 +0100
Subject: [PATCH] [libc] Add dependency <stdint.h> to src/string/string_utils.h

string_utils.h uses uintptr_t, and there seems to be no tracking
of this dependency. It seems upstream builds are unaffected but
downstream this is causing a lot of flaky builds.
---
 libc/src/string/string_utils.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libc/src/string/string_utils.h b/libc/src/string/string_utils.h
index 4f56263fce8ec..1231117586a7c 100644
--- a/libc/src/string/string_utils.h
+++ b/libc/src/string/string_utils.h
@@ -21,6 +21,8 @@
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
 
+#include <stdint.h> // uintptr_t
+
 namespace LIBC_NAMESPACE_DECL {
 namespace internal {
 



More information about the libc-commits mailing list