summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-03-02 16:23:07 +0000
committerPavel Labath <pavel@labath.sk>2019-03-02 16:23:07 +0000
commit113c4c108df506dd6806e4e3b2a26b2e66200918 (patch)
tree44d41e461cecabc4d17bc5b40b4f0e967239c2b6
parent31291a403c8a759aa4a33db7502730929db416a3 (diff)
downloadbcm5719-llvm-113c4c108df506dd6806e4e3b2a26b2e66200918.tar.gz
bcm5719-llvm-113c4c108df506dd6806e4e3b2a26b2e66200918.zip
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. llvm-svn: 355270
-rw-r--r--lldb/source/Utility/Reproducer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp
index b09248061d1..3e2ffcda281 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<DataRecorder>(std::move(filename), ec);
if (ec)
return llvm::errorCodeToError(ec);
- return recorder;
+ return std::move(recorder);
}
DataRecorder *CommandProvider::GetNewDataRecorder() {
OpenPOWER on IntegriCloud