Adjust various reaching-def move/reference semantics

Nothing that important, just changing things to what is hypothetically
more efficient in general.
This commit is contained in:
Jon Siwek 2021-02-01 22:00:56 -08:00
parent 1f7580db65
commit 36f27a0d01
6 changed files with 27 additions and 29 deletions

View file

@ -13,9 +13,9 @@ ReachingDefs::ReachingDefs()
const_rd_map = nullptr;
}
ReachingDefs::ReachingDefs(RDPtr& rd)
ReachingDefs::ReachingDefs(RDPtr rd)
{
const_rd_map = rd;
const_rd_map = std::move(rd);
my_rd_map = nullptr;
}