[Lldb-commits] [lldb] r355270 - Fix gcc build for r355249
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 2 08:23:07 PST 2019
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() {
More information about the lldb-commits
mailing list