diff --git a/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp b/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp --- a/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp +++ b/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp @@ -108,7 +108,7 @@ : InterfaceGenerator(records.getAllDerivedDefinitions("AttrInterface"), os) { valueType = "::mlir::Attribute"; - interfaceBaseType = "AttrInterface"; + interfaceBaseType = "AttributeInterface"; valueTemplate = "ConcreteAttr"; StringRef castCode = "(tablegen_opaque_val.cast())"; nonStaticMethodFmt.addSubst("_attr", castCode).withSelf(castCode);