Debian Codegraph @

external/llvm/releases/16.0.0/patches_external/add-include-cstdint-small-vector.patch

raw
1 /*========================== begin_copyright_notice ============================
2
3 Copyright (C) 2025 Intel Corporation
4
5 SPDX-License-Identifier: MIT
6
7 ============================= end_copyright_notice ===========================*/
8
9 /*========================== begin_copyright_notice ============================
10
11 Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
12 See https://llvm.org/LICENSE.txt for license information.
13 SPDX-License-Identifier: Apache-2.0 with LLVM-exception
14
15 ============================= end_copyright_notice ===========================*/
16
17 From 7e44305041d96b064c197216b931ae3917a34ac1 Mon Sep 17 00:00:00 2001
18 From: Sam James <[email protected]>
19 Date: Fri, 2 Aug 2024 23:07:21 +0100
20 Subject: [PATCH] [ADT] Add `<cstdint>` to SmallVector (#101761)
21
22 SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>`
23 which fails to build w/ GCC 15 after a change in libstdc++ [0]
24
25 [0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
26 ---
27 llvm/include/llvm/ADT/SmallVector.h | 1 +
28 1 file changed, 1 insertion(+)
29
30 diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
31 index 09676d792dfeb..17444147b102a 100644
32 --- a/llvm/include/llvm/ADT/SmallVector.h
33 +++ b/llvm/include/llvm/ADT/SmallVector.h
34 @@ -19,6 +19,7 @@
35 #include <algorithm>
36 #include <cassert>
37 #include <cstddef>
38 +#include <cstdint>
39 #include <cstdlib>
40 #include <cstring>
41 #include <functional>