[mlir] Remove an unused local variable (NFC) (#139351)

This commit is contained in:
Kazu Hirata
2025-05-10 07:27:12 -07:00
committed by GitHub
parent 05f1e31394
commit 53c7062d6c

View File

@@ -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)