[Mlir-commits] [mlir] db4863f - [MLIR] Fix AttributeInterface declaration.

Alex Zinenko llvmlistbot at llvm.org
Mon Oct 26 15:41:48 PDT 2020


Author: Ulysse Beaugnon
Date: 2020-10-26T23:41:39+01:00
New Revision: db4863ffd1ff0beaf8b13a50beb81d22c8f1137d

URL: https://github.com/llvm/llvm-project/commit/db4863ffd1ff0beaf8b13a50beb81d22c8f1137d
DIFF: https://github.com/llvm/llvm-project/commit/db4863ffd1ff0beaf8b13a50beb81d22c8f1137d.diff

LOG: [MLIR] Fix AttributeInterface declaration.

Substitues `Type` by `Attribute` in the declaration of AttributeInterface. It
looks like the code was written by copy-pasting the definition of TypeInterface,
but the substitution of Type by Attribute was missing at some places.

Reviewed By: rriddle, ftynse

Differential Revision: https://reviews.llvm.org/D90138

Added: 
    

Modified: 
    mlir/include/mlir/IR/Attributes.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h
index 6e7dd2463b03..263b35e22e92 100644
--- a/mlir/include/mlir/IR/Attributes.h
+++ b/mlir/include/mlir/IR/Attributes.h
@@ -148,8 +148,8 @@ class AttributeInterface
                                AttributeTrait::TraitBase> {
 public:
   using Base = AttributeInterface<ConcreteType, Traits>;
-  using InterfaceBase = detail::Interface<ConcreteType, Type, Traits, Type,
-                                          AttributeTrait::TraitBase>;
+  using InterfaceBase = detail::Interface<ConcreteType, Attribute, Traits,
+                                          Attribute, AttributeTrait::TraitBase>;
   using InterfaceBase::InterfaceBase;
 
 private:


        


More information about the Mlir-commits mailing list