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:
parent
31291a403c
commit
113c4c108d
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue