Skip to content

Commit

Permalink
[TableGen] Change push_back back to emplace_back.
Browse files Browse the repository at this point in the history
This was a mistake I made in 021edda.
  • Loading branch information
topperc committed Mar 23, 2023
1 parent 021edda commit b325604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/CodeGenHwModes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ CodeGenHwModes::CodeGenHwModes(RecordKeeper &RK) : Records(RK) {
// to accept references to it. We need to ignore the definition here.
if (R->getName() == DefaultModeName)
continue;
Modes.push_back(R);
Modes.emplace_back(R);
ModeIds.insert(std::make_pair(R, Modes.size()));
}

Expand Down

0 comments on commit b325604

Please sign in to comment.