From 19fe5c18217b5eaa0ae80aba4d5118b2ac364d23 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 24 Sep 2024 22:28:56 +0200 Subject: [PATCH] [llvm][NFC] Remove redundant copy parameter --- llvm/include/llvm/Support/Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/Memory.h b/llvm/include/llvm/Support/Memory.h index d7d60371d315f..c02a3cc14dc7d 100644 --- a/llvm/include/llvm/Support/Memory.h +++ b/llvm/include/llvm/Support/Memory.h @@ -137,7 +137,7 @@ namespace sys { class OwningMemoryBlock { public: OwningMemoryBlock() = default; - explicit OwningMemoryBlock(MemoryBlock M) : M(M) {} + explicit OwningMemoryBlock(MemoryBlock M) : M(std::move(M)) {} OwningMemoryBlock(OwningMemoryBlock &&Other) { M = Other.M; Other.M = MemoryBlock();