[Mlir-commits] [mlir] 53c7062 - [mlir] Remove an unused local variable (NFC) (#139351)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat May 10 07:27:16 PDT 2025
Author: Kazu Hirata
Date: 2025-05-10T07:27:12-07:00
New Revision: 53c7062d6c2d834ef68a93d4ea71976ad441585c
URL: https://github.com/llvm/llvm-project/commit/53c7062d6c2d834ef68a93d4ea71976ad441585c
DIFF: https://github.com/llvm/llvm-project/commit/53c7062d6c2d834ef68a93d4ea71976ad441585c.diff
LOG: [mlir] Remove an unused local variable (NFC) (#139351)
Added:
Modified:
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
Removed:
################################################################################
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