From 470b286ee5669019a83b2e2ffae845ee44369fbf Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 21 Jun 2018 15:07:43 +0000 Subject: Modernize UUID class Instead of a separate GetBytes + GetByteSize methods I introduce a single GetBytes method returning an ArrayRef. This is NFC cleanup now, but it should make handling arbitrarily-sized UUIDs cleaner, should we choose to go that way. I also took the opportunity to add some unit tests for this class. llvm-svn: 335244 --- lldb/source/API/SBModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/API/SBModule.cpp') diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index 8866cf448a30..ed0c75c5c3e9 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -144,7 +144,7 @@ const uint8_t *SBModule::GetUUIDBytes() const { const uint8_t *uuid_bytes = NULL; ModuleSP module_sp(GetSP()); if (module_sp) - uuid_bytes = (const uint8_t *)module_sp->GetUUID().GetBytes(); + uuid_bytes = module_sp->GetUUID().GetBytes().data(); if (log) { if (uuid_bytes) { -- cgit v1.2.3