0001-ADT-Add-cstdint-to-SmallVector-101761.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 51d88407c1ae86c3b3c7b497d049f8980f2a3510 Mon Sep 17 00:00:00 2001
  2. From: Sam James <sam@gentoo.org>
  3. Date: Fri, 2 Aug 2024 23:07:21 +0100
  4. Subject: [PATCH] [ADT] Add `<cstdint>` to SmallVector (#101761)
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>`
  9. which fails to build w/ GCC 15 after a change in libstdc++ [0]
  10. [0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
  11. Gentoo-Component: llvm
  12. Signed-off-by: Michał Górny <mgorny@gentoo.org>
  13. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
  14. Upstream: https://bugs.gentoo.org/939498
  15. ---
  16. include/llvm/ADT/SmallVector.h | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
  19. index e34702bdbb3c..1c0f3465b2a9 100644
  20. --- a/include/llvm/ADT/SmallVector.h
  21. +++ b/include/llvm/ADT/SmallVector.h
  22. @@ -19,6 +19,7 @@
  23. #include <algorithm>
  24. #include <cassert>
  25. #include <cstddef>
  26. +#include <cstdint>
  27. #include <cstdlib>
  28. #include <cstring>
  29. #include <functional>
  30. --
  31. 2.46.0