[Lldb-commits] [lldb] [lldb][PlatformDarwin] Fix build failure (PR #192934)
Fraser Cormack via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 20 03:40:56 PDT 2026
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/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.
>From c88a128de8f2cf98c6d3764d05fba9e68795202e Mon Sep 17 00:00:00 2001
From: Fraser Cormack <fcormack at modular.com>
Date: Mon, 20 Apr 2026 11:36:07 +0100
Subject: [PATCH] [lldb][PlatformDarwin] Fix build failure
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 further down in the same file.
---
lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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