From cc96d2d6bc9b0841c172a5211c558e188a8fa28b Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Mon, 7 Mar 2022 10:12:44 +0000 Subject: [PATCH] Apply clang-tidy fixes for modernize-use-emplace to MLIR (NFC) --- mlir/tools/mlir-tblgen/OpFormatGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp index c1a2007..0d970d8 100644 --- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp +++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp @@ -2851,7 +2851,7 @@ OpFormatParser::parseOIListDirective(SMLoc loc, Context context) { if (failed(lelement)) return failure(); literalElements.push_back(*lelement); - parsingElements.push_back(std::vector()); + parsingElements.emplace_back(); std::vector &currParsingElements = parsingElements.back(); while (peekToken().getKind() != FormatToken::pipe && peekToken().getKind() != FormatToken::r_paren) { -- 2.7.4