Avoid a redundant set operation in ProfileFuncs::MergeInProfile()

This commit is contained in:
Jon Siwek 2021-04-02 11:55:22 -07:00
parent 5ffe25fca8
commit d57848828e

View file

@ -458,10 +458,10 @@ void ProfileFuncs::MergeInProfile(ProfileFunc* pf)
for ( auto& g : pf->Globals() )
{
if ( globals.count(g) > 0 )
continue;
auto [it, inserted] = globals.emplace(g);
globals.insert(g);
if ( ! inserted )
continue;
auto& v = g->GetVal();
if ( v )