Apply clang-tidy's misc-move-constructor-init to lld.
No functionality change intended.
llvm-svn: 271686
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
index 915a041..d68ba77 100644
--- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
+++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
@@ -17,6 +17,7 @@
#include "llvm/Support/Debug.h"
#include <algorithm>
#include <set>
+#include <utility>
using namespace lld;
@@ -260,7 +261,7 @@
}
LayoutPass::LayoutPass(const Registry ®istry, SortOverride sorter)
- : _registry(registry), _customSorter(sorter) {}
+ : _registry(registry), _customSorter(std::move(sorter)) {}
// Returns the atom immediately followed by the given atom in the followon
// chain.