summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBModuleSpec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBModuleSpec.cpp')
-rw-r--r--lldb/source/API/SBModuleSpec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBModuleSpec.cpp b/lldb/source/API/SBModuleSpec.cpp
index 0e6e7c9b0b9..afabd9ace2b 100644
--- a/lldb/source/API/SBModuleSpec.cpp
+++ b/lldb/source/API/SBModuleSpec.cpp
@@ -90,7 +90,8 @@ size_t SBModuleSpec::GetUUIDLength() {
}
bool SBModuleSpec::SetUUIDBytes(const uint8_t *uuid, size_t uuid_len) {
- return m_opaque_ap->GetUUID().SetBytes(uuid, uuid_len);
+ m_opaque_ap->GetUUID() = UUID::fromOptionalData(uuid, uuid_len);
+ return m_opaque_ap->GetUUID().IsValid();
}
bool SBModuleSpec::GetDescription(lldb::SBStream &description) {
OpenPOWER on IntegriCloud