diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp index 8edcb8e0470d..47b7b9f77ebf 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp @@ -164,7 +164,7 @@ ConstString PlatformMacOSX::GetSDKDirectory(lldb_private::Target &target) { std::string default_xcode_sdk; FileSpec fspec; uint32_t versions[2]; - if (objfile->GetSDKVersion(versions, sizeof(versions))) { + if (objfile->GetSDKVersion(versions, 2)) { fspec = HostInfo::GetShlibDir(); if (fspec) { std::string path;