[Lldb-commits] [lldb] [LLDB] Add `<cstdint>` to AddressableBits (PR #102110)

via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 6 01:42:23 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Sam James (thesamesam)

<details>
<summary>Changes</summary>

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

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


1 Files Affected:

- (modified) lldb/include/lldb/Utility/AddressableBits.h (+2) 


``````````diff
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"

``````````

</details>


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


More information about the lldb-commits mailing list