[Lldb-commits] [lldb] 2c1624b - [lldb][PlatformDarwin] Fix build failure (#192934)

via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 20 04:31:03 PDT 2026


Author: Fraser Cormack
Date: 2026-04-20T12:30:58+01:00
New Revision: 2c1624b41f61c83b14507dc1c565eeb14317d618

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

LOG: [lldb][PlatformDarwin] Fix build failure (#192934)

PR #191454 introduced a constructor call that breaks in certain build
configs, e.g., with C++20 - https://godbolt.org/z/hTb8166qG.

This fix mimics what's done to construct an instance of `XcodeSDK::Info`
further up in the same file.

Added: 
    

Modified: 
    lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index 6e1a359ffe595..8db4824be7da5 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -1571,7 +1571,9 @@ PlatformDarwin::GetSafeAutoLoadPaths(const Target &target) const {
 
   XcodeSDK::Type sdk_type =
       XcodeSDK::GetSDKTypeForTriple(target.GetArchitecture().GetTriple());
-  XcodeSDK sdk(XcodeSDK::Info{sdk_type, {}});
+  XcodeSDK::Info info;
+  info.type = sdk_type;
+  XcodeSDK sdk(info);
 
   auto sdk_root_or_err = HostInfo::GetSDKRoot(HostInfo::SDKOptions{sdk});
   if (!sdk_root_or_err) {


        


More information about the lldb-commits mailing list