[Lldb-commits] [lldb] [lldb] Make single-argument Address constructor explicit (NFC) (PR #189035)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 27 09:32:38 PDT 2026


================
@@ -49,8 +49,8 @@ BreakpointLocation::BreakpointLocation(break_id_t loc_id, Breakpoint &owner,
 
 BreakpointLocation::BreakpointLocation(break_id_t loc_id, Breakpoint &owner)
     : m_should_resolve_indirect_functions(false), m_is_reexported(false),
-      m_is_indirect(false), m_address(LLDB_INVALID_ADDRESS), m_owner(owner),
-      m_condition_hash(0), m_loc_id(loc_id), m_hit_counter() {
+      m_is_indirect(false), m_owner(owner), m_condition_hash(0),
----------------
JDevlieghere wrote:

I assume this is relying on `Address` being `LLDB_INVALID_ADDRESS` when default constructed? If so, should we drop the other ones as well and rely on inline defaults? Anyway, that might be better suited for a separate PR. 

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


More information about the lldb-commits mailing list