================
@@ -8,8 +8,16 @@
#include "lldb/Utility/RegisterType.h"
+#include <atomic>
+
using namespace lldb_private;
+static std::atomic<uint64_t> g_next_register_type_uid{1};
----------------
DavidSpickett wrote:
Is there a specific reason to start at 1?
Maybe it is because if we forgot to initialise m_uid it would be zero and so by
starting at 1 we can tell if we forgot?
Anyway I don't mind starting at 1, just curious if there was a logic to it.
https://github.com/llvm/llvm-project/pull/215874
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits