[Mlir-commits] [mlir] [mlir] Remove an unused local variable (NFC) (PR #139351)
Kazu Hirata
llvmlistbot at llvm.org
Fri May 9 21:09:38 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139351
None
>From 21ca2b7d03e2b5ead9f9cbd97bb14436d9f5bef2 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 9 May 2025 21:00:07 -0700
Subject: [PATCH] [mlir] Remove an unused local variable (NFC)
---
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
index edcb2f507ae50..3f397f3a8e6fd 100644
--- a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@ -2090,7 +2090,6 @@ void OpEmitter::genOptionalAttrRemovers() {
// Generate methods for removing optional attributes, instead of having to
// use the string interface. Enables better compile time verification.
auto emitRemoveAttr = [&](StringRef name, bool useProperties) {
- auto upperInitial = name.take_front().upper();
auto *method = opClass.addInlineMethod("::mlir::Attribute",
op.getRemoverName(name) + "Attr");
if (!method)
More information about the Mlir-commits
mailing list