From 8ed7946a7d94f9d23b7f33356a1903d481daa5a0 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Tue, 6 Oct 2020 11:28:55 +0200 Subject: [PATCH] Revert "[llvm-objcopy][MachO] Add missing std::move." This reverts commit 6e25586990b93e2c9eaaa4f473b6720ccd646c46. It depends on 32c8435ef70031d7bd3dce48e41bdce65747e123, which I'm reverting due to ASan failures. Details in https://reviews.llvm.org/D88400. --- llvm/tools/llvm-objcopy/llvm-objcopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp index e1f1ed8..8cd5857 100644 --- a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp +++ b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp @@ -187,7 +187,7 @@ createNewArchiveMembers(CopyConfig &Config, const Archive &Ar) { } if (Err) return createFileError(Config.InputFilename, std::move(Err)); - return std::move(NewArchiveMembers); + return NewArchiveMembers; } } // end namespace objcopy -- 2.7.4