[Lldb-commits] [lldb] [lldb][NFC] Change ObjectFile argument type (PR #171574)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 10 21:49:27 PST 2025


================
@@ -1206,10 +1206,12 @@ ObjectFile *Module::GetObjectFile() {
         m_did_load_objfile = true;
         // FindPlugin will modify its data_sp argument. Do not let it
         // modify our m_data_sp member.
-        auto data_sp = m_data_sp;
+        DataExtractorSP extractor_sp;
+        if (m_data_sp)
+          extractor_sp = std::make_shared<DataExtractor>(m_data_sp);
----------------
jasonmolenda wrote:

I prefer the if cond-expr \n stmt style; it eats an extra line, but I think it is easier to read.

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


More information about the lldb-commits mailing list