https://github.com/kastiglione created 
https://github.com/llvm/llvm-project/pull/200919

None

>From 76a2923aaebb7efe0a6ee3529e9a840da1e98fad Mon Sep 17 00:00:00 2001
From: Dave Lee <[email protected]>
Date: Mon, 1 Jun 2026 12:46:51 -0700
Subject: [PATCH] [lldb] Add static_assert to catch increases to size of Symbol

---
 lldb/include/lldb/Symbol/Symbol.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lldb/include/lldb/Symbol/Symbol.h 
b/lldb/include/lldb/Symbol/Symbol.h
index 77da9b779bcdf..9d911464dd787 100644
--- a/lldb/include/lldb/Symbol/Symbol.h
+++ b/lldb/include/lldb/Symbol/Symbol.h
@@ -360,6 +360,14 @@ class Symbol : public SymbolContextScope {
 
 } // namespace lldb_private
 
+#if __SIZEOF_POINTER__ == 8
+static_assert(sizeof(lldb_private::Symbol) == 80,
+              "Symbol size must be kept to a minimum");
+#elif __SIZEOF_POINTER__ == 4
+static_assert(sizeof(lldb_private::Symbol) == 52,
+              "Symbol size must be kept to a minimum");
+#endif
+
 namespace llvm {
 namespace json {
 

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to