[llvm-objcopy][MachO] Add missing std::move.
authorAlexander Shaposhnikov <alexshap@fb.com>
Mon, 5 Oct 2020 18:02:13 +0000 (11:02 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Mon, 5 Oct 2020 18:02:34 +0000 (11:02 -0700)
This change fixes the build issue introduced by 32c8435ef7
(detected by the buildbot fuchsia-x86_64-linux).

Test plan: make check-all

llvm/tools/llvm-objcopy/llvm-objcopy.cpp

index 8cd5857..e1f1ed8 100644 (file)
@@ -187,7 +187,7 @@ createNewArchiveMembers(CopyConfig &Config, const Archive &Ar) {
   }
   if (Err)
     return createFileError(Config.InputFilename, std::move(Err));
-  return NewArchiveMembers;
+  return std::move(NewArchiveMembers);
 }
 
 } // end namespace objcopy