Skip to content
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

[LLDB] Add <cstdint> to AddressableBits #102110

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

thesamesam
Copy link
Member

AddressableBits uses uint32_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

AddressableBits uses `uint32_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
@llvmbot llvmbot added the lldb label Aug 6, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 6, 2024

@llvm/pr-subscribers-lldb

Author: Sam James (thesamesam)

Changes

AddressableBits uses uint32_t without including &lt;cstdint&gt; 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


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

1 Files Affected:

  • (modified) lldb/include/lldb/Utility/AddressableBits.h (+2)
diff --git a/lldb/include/lldb/Utility/AddressableBits.h b/lldb/include/lldb/Utility/AddressableBits.h
index 0d27c3561ec27..8c7a1ec5f52c0 100644
--- a/lldb/include/lldb/Utility/AddressableBits.h
+++ b/lldb/include/lldb/Utility/AddressableBits.h
@@ -12,6 +12,8 @@
 #include "lldb/lldb-forward.h"
 #include "lldb/lldb-public.h"
 
+#include <cstdint>
+
 namespace lldb_private {
 
 /// \class AddressableBits AddressableBits.h "lldb/Core/AddressableBits.h"

@thesamesam
Copy link
Member Author

Thanks!

@thesamesam thesamesam merged commit bb59f04 into llvm:main Aug 6, 2024
6 of 8 checks passed
@thesamesam thesamesam deleted the gcc15-cstdint-lldb branch August 6, 2024 08:58
@thesamesam thesamesam added this to the LLVM 19.X Release milestone Aug 6, 2024
@thesamesam
Copy link
Member Author

/cherry-pick bb59f04

llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 6, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 6, 2024

/pull-request #102112

banach-space pushed a commit to banach-space/llvm-project that referenced this pull request Aug 7, 2024
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 10, 2024
kstoimenov pushed a commit to kstoimenov/llvm-project that referenced this pull request Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants