[llvm] Remove redundant move in return statement (PR #91210)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Mon May 6 18:06:42 PDT 2024
================
@@ -77,7 +77,7 @@ class TrampolinePool {
std::lock_guard<std::mutex> Lock(TPMutex);
if (AvailableTrampolines.empty()) {
if (auto Err = grow())
- return std::move(Err);
+ return Err;
----------------
joker-eph wrote:
There is still here the mismatch in the type of Err and the type of the return for the method that led to this error I believe: https://lab.llvm.org/buildbot/#/builders/61/builds/57655
https://github.com/llvm/llvm-project/pull/91210
More information about the llvm-commits
mailing list