[all-commits] [llvm/llvm-project] dd63ed: [llvm][NFC] Remove redundant copy parameter (#109859)

Amr Hesham via All-commits all-commits at lists.llvm.org
Tue Oct 15 09:18:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd63ede2f548dc70b74ad2040a95f45cf5aa94a4
      https://github.com/llvm/llvm-project/commit/dd63ede2f548dc70b74ad2040a95f45cf5aa94a4
  Author: Amr Hesham <amr96 at programmer.net>
  Date:   2024-10-15 (Tue, 15 Oct 2024)

  Changed paths:
    M llvm/include/llvm/Support/Memory.h

  Log Message:
  -----------
  [llvm][NFC] Remove redundant copy parameter (#109859)

Remove redundant copy parameter and move it

from `explicit OwningMemoryBlock(MemoryBlock M) : M(M) {}`

to `explicit OwningMemoryBlock(MemoryBlock M) : M(std::move(m)) {}`

Fixes: #95640



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list