forked from OSchip/llvm-project
Revert rGb6437b352db9 - "Fix gcc9 "moving a local object in a return statement prevents copy elision" Wpessimizing-move warnings."
Fix buildbots
This commit is contained in:
parent
88cdeaa531
commit
d1b32f328e
|
@ -1528,20 +1528,20 @@ public:
|
|||
Args...)) {
|
||||
detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
|
||||
std::move(Result));
|
||||
return Err;
|
||||
return std::move(Err);
|
||||
}
|
||||
|
||||
if (auto Err = this->C.send()) {
|
||||
detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
|
||||
std::move(Result));
|
||||
return Err;
|
||||
return std::move(Err);
|
||||
}
|
||||
|
||||
while (!ReceivedResponse) {
|
||||
if (auto Err = this->handleOne()) {
|
||||
detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
|
||||
std::move(Result));
|
||||
return Err;
|
||||
return std::move(Err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue