Use const auto references to avoid some copies

This commit is contained in:
Tim Wojtulewicz 2025-04-04 16:22:56 -07:00
parent 739efc79be
commit f7495831a2
5 changed files with 8 additions and 8 deletions

View file

@ -519,7 +519,7 @@ static void analyze_scripts_for_ZAM(std::shared_ptr<ProfileFuncs> pfs) {
if ( g->GetType()->Tag() != TYPE_FUNC )
continue;
auto v = g->GetVal();
const auto& v = g->GetVal();
if ( v )
func_used_indirectly.insert(v->AsFunc());
}