Apply clang-tidy fixes for modernize-use-emplace to MLIR (NFC)

This commit is contained in:
Mehdi Amini 2022-03-07 10:12:44 +00:00
parent 671e30a12f
commit cc96d2d6bc
1 changed files with 1 additions and 1 deletions

View File

@ -2851,7 +2851,7 @@ OpFormatParser::parseOIListDirective(SMLoc loc, Context context) {
if (failed(lelement))
return failure();
literalElements.push_back(*lelement);
parsingElements.push_back(std::vector<FormatElement *>());
parsingElements.emplace_back();
std::vector<FormatElement *> &currParsingElements = parsingElements.back();
while (peekToken().getKind() != FormatToken::pipe &&
peekToken().getKind() != FormatToken::r_paren) {