[Lldb-commits] [lldb] 4134592 - [lldb] Construct SmallVector with ArrayRef (NFC) (#102793)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Aug 11 12:48:10 PDT 2024
Author: Kazu Hirata
Date: 2024-08-11T12:48:06-07:00
New Revision: 41345925f9393518be8029cfb1ea80cfeb5631b4
URL: https://github.com/llvm/llvm-project/commit/41345925f9393518be8029cfb1ea80cfeb5631b4
DIFF: https://github.com/llvm/llvm-project/commit/41345925f9393518be8029cfb1ea80cfeb5631b4.diff
LOG: [lldb] Construct SmallVector with ArrayRef (NFC) (#102793)
Added:
Modified:
lldb/include/lldb/Utility/UUID.h
Removed:
################################################################################
diff --git a/lldb/include/lldb/Utility/UUID.h b/lldb/include/lldb/Utility/UUID.h
index 66058d482f012f..bc4b4acd5a7d8f 100644
--- a/lldb/include/lldb/Utility/UUID.h
+++ b/lldb/include/lldb/Utility/UUID.h
@@ -28,7 +28,7 @@ class UUID {
UUID() = default;
/// Creates a uuid from the data pointed to by the bytes argument.
- UUID(llvm::ArrayRef<uint8_t> bytes) : m_bytes(bytes.begin(), bytes.end()) {
+ UUID(llvm::ArrayRef<uint8_t> bytes) : m_bytes(bytes) {
if (llvm::all_of(m_bytes, [](uint8_t b) { return b == 0; })) {
Clear();
}
More information about the lldb-commits
mailing list