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
This commit is contained in:
Pavel Labath 2019-03-02 16:23:07 +00:00
parent 31291a403c
commit 113c4c108d
1 changed files with 1 additions and 1 deletions

View File

@ -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() {