Author: labath Date: Sat Mar 2 08:23:07 2019 New Revision: 355270 URL: http://llvm.org/viewvc/llvm-project?rev=355270&view=rev Log: Fix gcc build for r355249
automatic move should not fire when returning type T in a function with result type Expected<T>. Some compilers seem to allow that nonetheless. Modified: lldb/trunk/source/Utility/Reproducer.cpp Modified: lldb/trunk/source/Utility/Reproducer.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Reproducer.cpp?rev=355270&r1=355269&r2=355270&view=diff ============================================================================== --- lldb/trunk/source/Utility/Reproducer.cpp (original) +++ lldb/trunk/source/Utility/Reproducer.cpp Sat Mar 2 08:23:07 2019 @@ -226,7 +226,7 @@ DataRecorder::Create(FileSpec filename) auto recorder = llvm::make_unique<DataRecorder>(std::move(filename), ec); if (ec) return llvm::errorCodeToError(ec); - return recorder; + return std::move(recorder); } DataRecorder *CommandProvider::GetNewDataRecorder() { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits