summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/FileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/common/FileSystem.cpp')
-rw-r--r--lldb/source/Host/common/FileSystem.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp
index 88f29b46f36..55092dc8400 100644
--- a/lldb/source/Host/common/FileSystem.cpp
+++ b/lldb/source/Host/common/FileSystem.cpp
@@ -67,9 +67,7 @@ bool FileSystem::CalculateMD5(const FileSpec &file_spec, uint64_t offset,
if (!CalcMD5(file_spec, offset, length, md5_result))
return false;
- const auto uint64_res = reinterpret_cast<const uint64_t *>(md5_result);
- high = uint64_res[0];
- low = uint64_res[1];
+ std::tie(high, low) = md5_result.words();
return true;
}
OpenPOWER on IntegriCloud