Skip to content

release/19.x: [ADT] Add <cstdint> to SmallVector (#101761) #101771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Aug 2, 2024

Backport 7e44305

Requested by: @thesamesam

@llvmbot
Copy link
Member Author

llvmbot commented Aug 2, 2024

@llvm/pr-subscribers-llvm-adt

Author: None (llvmbot)

Changes

Backport 7e44305

Requested by: @thesamesam


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

1 Files Affected:

  • (modified) llvm/include/llvm/ADT/SmallVector.h (+1)
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 09676d792dfeb..17444147b102a 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>

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 7e44305)
@tru tru merged commit e2f25af into llvm:release/19.x Aug 10, 2024
8 of 9 checks passed
Copy link

@thesamesam (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

4 participants