[Lldb-commits] [lldb] [lldb][PlatformDarwin] Fix build failure (PR #192934)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 20 03:41:29 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Fraser Cormack (frasercrmck)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/192934.diff
1 Files Affected:
- (modified) lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp (+3-1)
``````````diff
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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/192934
More information about the lldb-commits
mailing list