[libc] [llvm] Fix after #121482 (PR #121764)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 05:17:20 PST 2025
https://github.com/JoelWee created https://github.com/llvm/llvm-project/pull/121764
None
>From 6903781c61b6c80cee01de8e5ef112cbb544cd27 Mon Sep 17 00:00:00 2001
From: Joel Wee <joelwee at google.com>
Date: Mon, 6 Jan 2025 13:16:30 +0000
Subject: [PATCH] Fix after #121482
---
libc/src/stdlib/qsort_pivot.h | 2 +-
utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/libc/src/stdlib/qsort_pivot.h b/libc/src/stdlib/qsort_pivot.h
index b7e1b4294f6d61..b27e74663d901e 100644
--- a/libc/src/stdlib/qsort_pivot.h
+++ b/libc/src/stdlib/qsort_pivot.h
@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
#define LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
-#include <stdint.h>
+#include <stddef.h> // For size_t
namespace LIBC_NAMESPACE_DECL {
namespace internal {
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 15fa4123b75fe1..81309f1e373ac6 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -3481,11 +3481,13 @@ libc_support_library(
hdrs = [
"src/stdlib/heap_sort.h",
"src/stdlib/qsort_data.h",
+ "src/stdlib/qsort_pivot.h",
"src/stdlib/qsort_util.h",
"src/stdlib/quick_sort.h",
],
deps = [
":__support_common",
+ ":__support_cpp_bit",
":__support_cpp_cstddef",
":__support_macros_attributes",
],
More information about the llvm-commits
mailing list