forked from OSchip/llvm-project
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:
parent
6175fcf01f
commit
2fe625e9ab
|
@ -98,7 +98,7 @@ public:
|
|||
IsTaskInFlight = true;
|
||||
}
|
||||
}
|
||||
return std::move(F);
|
||||
return F;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue