[llvm-branch-commits] [llvm] e2f25af - [ADT] Add `<cstdint>` to SmallVector (#101761)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Aug 10 02:52:17 PDT 2024
Author: Sam James
Date: 2024-08-10T11:52:05+02:00
New Revision: e2f25af711425fb238317582441f4bda56131891
URL: https://github.com/llvm/llvm-project/commit/e2f25af711425fb238317582441f4bda56131891
DIFF: https://github.com/llvm/llvm-project/commit/e2f25af711425fb238317582441f4bda56131891.diff
LOG: [ADT] Add `<cstdint>` to SmallVector (#101761)
SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>`
which fails to build w/ GCC 15 after a change in libstdc++ [0]
[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
(cherry picked from commit 7e44305041d96b064c197216b931ae3917a34ac1)
Added:
Modified:
llvm/include/llvm/ADT/SmallVector.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 09676d792dfebd..17444147b102a9 100644
--- a/llvm/include/llvm/ADT/SmallVector.h
+++ b/llvm/include/llvm/ADT/SmallVector.h
@@ -19,6 +19,7 @@
#include <algorithm>
#include <cassert>
#include <cstddef>
+#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <functional>
More information about the llvm-branch-commits
mailing list