mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user