summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-31 00:35:50 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-31 00:35:50 +0000
commite487da165c87059448804aea3be06968e4ea09c2 (patch)
treef0af961b14b4b2686152630fbd9b3a6b699e8ac4 /lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
parent021de058df7ff14b279e434e1fbea4b468a47cd5 (diff)
downloadbcm5719-llvm-e487da165c87059448804aea3be06968e4ea09c2.tar.gz
bcm5719-llvm-e487da165c87059448804aea3be06968e4ea09c2.zip
Fix a bunch of -Wpessimizing-move issues.
Thanks to Rui for pointing out this warning was firing. llvm-svn: 264977
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp')
-rw-r--r--lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
index 0ec7a40301d..5eb5924ff8a 100644
--- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
+++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
@@ -779,7 +779,7 @@ llvm::Error MachOFileLayout::writeLoadCommands() {
// Object files have one unnamed segment which holds all sections.
if (_is64) {
if (auto ec = writeSingleSegmentLoadCommand<MachO64Trait>(lc))
- return std::move(ec);
+ return ec;
} else {
if (auto ec = writeSingleSegmentLoadCommand<MachO32Trait>(lc))
return std::move(ec);
OpenPOWER on IntegriCloud