[Lldb-commits] [clang] [lldb] [llvm] [mlir] [NFC][Support] Add llvm::uninitialized_copy (PR #138174)
    Rahul Joshi via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Fri May  2 12:23:07 PDT 2025
    
    
  
================
@@ -22,8 +22,8 @@ Checksum &Checksum::operator=(const Checksum &checksum) {
 }
 
 void Checksum::SetMD5(llvm::MD5::MD5Result md5) {
-  const constexpr size_t md5_length = 16;
-  std::uninitialized_copy_n(md5.begin(), md5_length, m_checksum.begin());
+  static_assert(sizeof(md5) == 16, "MD5 expected to be 16 bytes/128 bits");
+  llvm::uninitialized_copy(md5, m_checksum.begin());
----------------
jurahul wrote:
Done.
https://github.com/llvm/llvm-project/pull/138174
    
    
More information about the lldb-commits
mailing list