[Lldb-commits] [lldb] [lldb][API] Make SB-API functions const if possible. (PR #172687)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 18 13:35:06 PST 2025


================
@@ -202,12 +202,12 @@ SymbolType SBSymbol::GetType() {
   return eSymbolTypeInvalid;
 }
 
-uint32_t SBSymbol::GetID() {
+uint32_t SBSymbol::GetID() const {
   LLDB_INSTRUMENT_VA(this);
 
   if (m_opaque_ptr)
     return m_opaque_ptr->GetID();
-  return 0;
+  return UINT32_MAX;
----------------
bulbazord wrote:

Can you put that in a separate PR with a title that reflects that? I don't think that kind of change makes sense for this PR.

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


More information about the lldb-commits mailing list