[Mlir-commits] [mlir] e13bbd1 - Apply clang-tidy fixes for modernize-use-emplace in RewriterGen.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Feb 20 14:15:10 PST 2024
Author: Mehdi Amini
Date: 2024-02-20T14:14:38-08:00
New Revision: e13bbd1e71797c781a0b242a7c121e5c5c620bc2
URL: https://github.com/llvm/llvm-project/commit/e13bbd1e71797c781a0b242a7c121e5c5c620bc2
DIFF: https://github.com/llvm/llvm-project/commit/e13bbd1e71797c781a0b242a7c121e5c5c620bc2.diff
LOG: Apply clang-tidy fixes for modernize-use-emplace in RewriterGen.cpp (NFC)
Added:
Modified:
mlir/tools/mlir-tblgen/RewriterGen.cpp
Removed:
################################################################################
diff --git a/mlir/tools/mlir-tblgen/RewriterGen.cpp b/mlir/tools/mlir-tblgen/RewriterGen.cpp
index 77c34cb03e987e..426a3482960be4 100644
--- a/mlir/tools/mlir-tblgen/RewriterGen.cpp
+++ b/mlir/tools/mlir-tblgen/RewriterGen.cpp
@@ -1785,7 +1785,7 @@ void PatternEmitter::createAggregateLocalVarsForOpArgs(
range);
sizes.push_back(formatv("static_cast<int32_t>({0}.size())", range));
} else {
- sizes.push_back("1");
+ sizes.emplace_back("1");
os << formatv("tblgen_values.push_back(");
if (node.isNestedDagArg(argIndex)) {
os << symbolInfoMap.getValueAndRangeUse(
More information about the Mlir-commits
mailing list