Fix two pessimizing moves.

See https://en.cppreference.com/w/cpp/language/return#Automatic_move_from_local_variables_and_parameters

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D94218
This commit is contained in:
Christian Sigg 2021-01-07 09:40:41 +01:00
parent 6175fcf01f
commit 2fe625e9ab
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ public:
IsTaskInFlight = true;
}
}
return std::move(F);
return F;
}
private:

View File

@ -67,7 +67,7 @@ inline OwningOpRef<ContainerOpT> constructContainerOpForParserIfNecessary(
// contain the operations inside of it.
if (failed(op.verify()))
return OwningOpRef<ContainerOpT>();
return std::move(opRef);
return opRef;
}
} // end namespace detail