Adjust reference/move nitpicks in use-def/reduce code

Use std::move() and avoid superfluous copies by assigning to
const-reference in a few places.
This commit is contained in:
Jon Siwek 2021-02-08 17:50:57 -08:00
parent 8d452f58fc
commit b450b90a3e
3 changed files with 5 additions and 5 deletions

View file

@ -95,7 +95,7 @@ private:
UDs PropagateUDs(const StmtPtr& s, UDs succ_UDs,
const StmtPtr& succ_stmt, bool second_pass)
{
return PropagateUDs(s.get(), succ_UDs, succ_stmt.get(),
return PropagateUDs(s.get(), std::move(succ_UDs), succ_stmt.get(),
second_pass);
}
UDs PropagateUDs(const Stmt* s, UDs succ_UDs,