forked from OSchip/llvm-project
Apply clang-tidy fixes for modernize-use-emplace to MLIR (NFC)
This commit is contained in:
parent
671e30a12f
commit
cc96d2d6bc
|
@ -2851,7 +2851,7 @@ OpFormatParser::parseOIListDirective(SMLoc loc, Context context) {
|
||||||
if (failed(lelement))
|
if (failed(lelement))
|
||||||
return failure();
|
return failure();
|
||||||
literalElements.push_back(*lelement);
|
literalElements.push_back(*lelement);
|
||||||
parsingElements.push_back(std::vector<FormatElement *>());
|
parsingElements.emplace_back();
|
||||||
std::vector<FormatElement *> &currParsingElements = parsingElements.back();
|
std::vector<FormatElement *> &currParsingElements = parsingElements.back();
|
||||||
while (peekToken().getKind() != FormatToken::pipe &&
|
while (peekToken().getKind() != FormatToken::pipe &&
|
||||||
peekToken().getKind() != FormatToken::r_paren) {
|
peekToken().getKind() != FormatToken::r_paren) {
|
||||||
|
|
Loading…
Reference in New Issue