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

via libc-commits libc-commits at lists.llvm.org
Mon Jul 21 09:53:34 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: William Huynh (saturn691)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/149849.diff


1 Files Affected:

- (modified) libc/src/string/string_utils.h (+2) 


``````````diff
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 {
 

``````````

</details>


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


More information about the libc-commits mailing list