[llvm] r354603 - [llvm-objcopy][NFC] Add std::move() to fix older BB
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 09:24:55 PST 2019
Author: rupprecht
Date: Thu Feb 21 09:24:55 2019
New Revision: 354603
URL: http://llvm.org/viewvc/llvm-project?rev=354603&view=rev
Log:
[llvm-objcopy][NFC] Add std::move() to fix older BB
Modified:
llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp
Modified: llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp?rev=354603&r1=354602&r2=354603&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp Thu Feb 21 09:24:55 2019
@@ -560,7 +560,7 @@ Expected<DriverConfig> parseObjcopyOptio
"LLVM was not compiled with LLVM_ENABLE_ZLIB: cannot decompress");
DC.CopyConfigs.push_back(std::move(Config));
- return DC;
+ return std::move(DC);
}
// ParseStripOptions returns the config and sets the input arguments. If a
@@ -653,7 +653,7 @@ Expected<DriverConfig> parseStripOptions
}
}
- return DC;
+ return std::move(DC);
}
} // namespace objcopy
More information about the llvm-commits
mailing list