[Lldb-commits] [lldb] f37463b - [lldb] Another build fix for 8b8070e23
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 22 06:30:21 PDT 2021
Author: Pavel Labath
Date: 2021-10-22T15:29:38+02:00
New Revision: f37463b2eef66dfae3ed669d1cbb2a34b643d071
URL: https://github.com/llvm/llvm-project/commit/f37463b2eef66dfae3ed669d1cbb2a34b643d071
DIFF: https://github.com/llvm/llvm-project/commit/f37463b2eef66dfae3ed669d1cbb2a34b643d071.diff
LOG: [lldb] Another build fix for 8b8070e23
This particular usage was guarded by !__linux__, so it broke everywhere
else. It should probably be replaced by something else.
Added:
Modified:
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteMacOSX.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteMacOSX.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteMacOSX.cpp
index 3e31b1274597d..ea93d9944879c 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteMacOSX.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteMacOSX.cpp
@@ -161,7 +161,7 @@ lldb_private::Status PlatformRemoteMacOSX::GetFileWithUUID(
if (m_remote_platform_sp) {
std::string local_os_build;
#if !defined(__linux__)
- HostInfo::GetOSBuildString(local_os_build);
+ local_os_build = HostInfo::GetOSBuildString().getValueOr("");
#endif
std::string remote_os_build;
m_remote_platform_sp->GetOSBuildString(remote_os_build);
More information about the lldb-commits
mailing list