summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/macosx
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-21 15:40:33 +0000
committerPavel Labath <labath@google.com>2018-06-21 15:40:33 +0000
commit9092cc96d4266530e82fac2e22d5ce2400f6dcc9 (patch)
tree4af8dff3fd5ba84d9fe7c1b4c9623b67c43e8ae5 /lldb/source/Host/macosx
parenta174bcbf033da7392b8c2c96c381d45f09a9810f (diff)
downloadbcm5719-llvm-9092cc96d4266530e82fac2e22d5ce2400f6dcc9.tar.gz
bcm5719-llvm-9092cc96d4266530e82fac2e22d5ce2400f6dcc9.zip
Fix macos build for r335244
I've made the code accept only 16 byte UUIDs, which is technically not NFC (previously it would also accept 20 byte ones, but use only the first 16 bytes), but this should be more correct as mac UUIDs are always 16 byte long. llvm-svn: 335247
Diffstat (limited to 'lldb/source/Host/macosx')
-rw-r--r--lldb/source/Host/macosx/Symbols.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/macosx/Symbols.cpp b/lldb/source/Host/macosx/Symbols.cpp
index b82fea5ef3e..b01c48e51d9 100644
--- a/lldb/source/Host/macosx/Symbols.cpp
+++ b/lldb/source/Host/macosx/Symbols.cpp
@@ -76,8 +76,8 @@ int LocateMacOSXFilesUsingDebugSymbols(const ModuleSpec &module_spec,
if (uuid && uuid->IsValid()) {
// Try and locate the dSYM file using DebugSymbols first
- const UInt8 *module_uuid = (const UInt8 *)uuid->GetBytes();
- if (module_uuid != NULL) {
+ llvm::ArrayRef<uint8_t> module_uuid = uuid->GetBytes();
+ if (module_uuid.size() == 16) {
CFCReleaser<CFUUIDRef> module_uuid_ref(::CFUUIDCreateWithBytes(
NULL, module_uuid[0], module_uuid[1], module_uuid[2], module_uuid[3],
module_uuid[4], module_uuid[5], module_uuid[6], module_uuid[7],
OpenPOWER on IntegriCloud