From c55cf4afa9161bb4413b7ca9933d553327f5f069 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 10 Feb 2020 07:06:45 -0800 Subject: Revert "Remove redundant "std::move"s in return statements" The build failed with error: call to deleted constructor of 'llvm::Error' errors. This reverts commit 1c2241a7936bf85aa68aef94bd40c3ba77d8ddf2. --- llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp') diff --git a/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp b/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp index 0c990c8..1445f0b 100644 --- a/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp @@ -137,7 +137,7 @@ ModuleDebugStreamRef::findChecksumsSubsection() const { continue; if (auto EC = Result.initialize(SS.getRecordData())) - return EC; + return std::move(EC); return Result; } return Result; -- cgit v1.1