[Lldb-commits] [lldb] [lldb] Construct SmallVector with ArrayRef (NFC) (PR #102793)

Kazu Hirata via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 10 23:28:22 PDT 2024


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/102793

None

>From 676375dea7921fa81dff17403d587eb2592db030 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 10 Aug 2024 23:23:22 -0700
Subject: [PATCH] [lldb] Construct SmallVector with ArrayRef (NFC)

---
 lldb/include/lldb/Utility/UUID.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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