[llvm] r348736 - [TextAPI][elfabi] Fix build by adding std::move() to r348735
Armando Montanez via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 9 19:05:58 PST 2018
Author: amontanez
Date: Sun Dec 9 19:05:58 2018
New Revision: 348736
URL: http://llvm.org/viewvc/llvm-project?rev=348736&view=rev
Log:
[TextAPI][elfabi] Fix build by adding std::move() to r348735
Modified:
llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp
Modified: llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp?rev=348736&r1=348735&r2=348736&view=diff
==============================================================================
--- llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp (original)
+++ llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp Sun Dec 9 19:05:58 2018
@@ -149,7 +149,7 @@ Expected<std::unique_ptr<ELFStub>> elfab
if (std::error_code Err = YamlIn.error())
return createStringError(Err, "YAML failed reading as TBE");
- return Stub;
+ return std::move(Stub);
}
Error elfabi::writeTBEToOutputStream(raw_ostream &OS, const ELFStub &Stub) {
More information about the llvm-commits
mailing list