diff --git a/mlir/include/mlir/IR/StandardTypes.h b/mlir/include/mlir/IR/StandardTypes.h --- a/mlir/include/mlir/IR/StandardTypes.h +++ b/mlir/include/mlir/IR/StandardTypes.h @@ -330,7 +330,7 @@ // element type within that dialect. return type.isa() || type.isa() || type.isa() || type.isa() || - type.isa() || + type.isa() || type.isa() || (type.getKind() > Type::Kind::LAST_STANDARD_TYPE); } diff --git a/mlir/test/IR/invalid.mlir b/mlir/test/IR/invalid.mlir --- a/mlir/test/IR/invalid.mlir +++ b/mlir/test/IR/invalid.mlir @@ -23,10 +23,6 @@ func @indexmemref(memref) -> () // expected-error {{invalid memref element type}} -// ----- - -func @indextensor(tensor<4 x index>) -> () // expected-error {{invalid tensor element type}} - // ----- // Test no map in memref type. func @memrefs(memref<2x4xi8, >) // expected-error {{expected list element}}