From: Pavel Labath Date: Sat, 2 Mar 2019 16:23:07 +0000 (+0000) Subject: Fix gcc build for r355249 X-Git-Tag: llvmorg-10-init~10834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=113c4c108df506dd6806e4e3b2a26b2e66200918;p=platform%2Fupstream%2Fllvm.git Fix gcc build for r355249 automatic move should not fire when returning type T in a function with result type Expected. Some compilers seem to allow that nonetheless. llvm-svn: 355270 --- diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp index b092480..3e2ffcd 100644 --- a/lldb/source/Utility/Reproducer.cpp +++ b/lldb/source/Utility/Reproducer.cpp @@ -226,7 +226,7 @@ DataRecorder::Create(FileSpec filename) { auto recorder = llvm::make_unique(std::move(filename), ec); if (ec) return llvm::errorCodeToError(ec); - return recorder; + return std::move(recorder); } DataRecorder *CommandProvider::GetNewDataRecorder() {