Use emplace_back over push_back where appropriate

This commit is contained in:
Tim Wojtulewicz 2023-07-06 15:53:13 -07:00
parent 0d78eb1933
commit 64b78f6fb9
28 changed files with 86 additions and 86 deletions

View file

@ -26,7 +26,7 @@ void GenIDDefs::TraverseFunction(const Func* f, ScopePtr scope, StmtPtr body)
// Establish the outermost barrier and associated set of
// identifiers.
barrier_blocks.push_back(0);
modified_IDs.push_back({});
modified_IDs.emplace_back();
for ( const auto& g : pf->Globals() )
{
@ -434,7 +434,7 @@ void GenIDDefs::StartConfluenceBlock(const Stmt* s)
barrier_blocks.push_back(confluence_blocks.size());
confluence_blocks.push_back(s);
modified_IDs.push_back({});
modified_IDs.emplace_back();
}
void GenIDDefs::EndConfluenceBlock(bool no_orig)