Skip to content

Commit cc96d2d

Browse files
committed
Apply clang-tidy fixes for modernize-use-emplace to MLIR (NFC)
1 parent 671e30a commit cc96d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/tools/mlir-tblgen/OpFormatGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2851,7 +2851,7 @@ OpFormatParser::parseOIListDirective(SMLoc loc, Context context) {
28512851
if (failed(lelement))
28522852
return failure();
28532853
literalElements.push_back(*lelement);
2854-
parsingElements.push_back(std::vector<FormatElement *>());
2854+
parsingElements.emplace_back();
28552855
std::vector<FormatElement *> &currParsingElements = parsingElements.back();
28562856
while (peekToken().getKind() != FormatToken::pipe &&
28572857
peekToken().getKind() != FormatToken::r_paren) {

0 commit comments

Comments
 (0)