Author: Jason Molenda
Date: 2026-01-29T16:04:15-08:00
New Revision: a9b67d0702cbb5906970d93aed509501b45103ae

URL: 
https://github.com/llvm/llvm-project/commit/a9b67d0702cbb5906970d93aed509501b45103ae
DIFF: 
https://github.com/llvm/llvm-project/commit/a9b67d0702cbb5906970d93aed509501b45103ae.diff

LOG: [lldb] Fix a compile error that came up with some compilers
Some versions will construct the DataExtractorSP here,
it seems.  Others need it explicitly created.

Added: 
    

Modified: 
    lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm 
b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
index 19d3601e60109..4d4486da0e95f 100644
--- a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
+++ b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
@@ -709,9 +709,11 @@ static bool ResolveAndVerifyCandidateSupportDir(FileSpec 
&path) {
         });
     assert(minVmAddr != UINT_MAX);
     assert(maxVmAddr != 0);
+    DataBufferSP data_sp = std::make_shared<DataBufferUnowned>(
+        (uint8_t *)minVmAddr, maxVmAddr - minVmAddr);
+    DataExtractorSP extractor_sp = std::make_shared<DataExtractor>(data_sp);
     m_images[dyld_image_get_installname(image)] = SharedCacheImageInfo{
-        UUID(uuid, 16), std::make_shared<DataBufferUnowned>(
-                            (uint8_t *)minVmAddr, maxVmAddr - minVmAddr)};
+        UUID(uuid, 16), extractor_sp)};
   });
   return true;
 #endif


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to