[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:39 PDT 2026
================
@@ -160,7 +160,7 @@ class Address {
/// A list of sections, one of which may contain the \a file_addr.
Address(lldb::addr_t file_addr, const SectionList *section_list);
- Address(lldb::addr_t abs_addr);
+ explicit Address(lldb::addr_t abs_addr);
----------------
JDevlieghere wrote:
Is there any reason to have both, rather than making the ctor on line 161 explicit and defaulting `section_list` to `nullptr`?
https://github.com/llvm/llvm-project/pull/189035
More information about the lldb-commits
mailing list