diff --git a/mlir/include/mlir/Interfaces/InferTypeOpInterface.h b/mlir/include/mlir/Interfaces/InferTypeOpInterface.h --- a/mlir/include/mlir/Interfaces/InferTypeOpInterface.h +++ b/mlir/include/mlir/Interfaces/InferTypeOpInterface.h @@ -38,7 +38,8 @@ public: /// Default construction is an unranked shape. ShapedTypeComponents() : ranked(false), elementType(nullptr), attr(nullptr){}; - + ShapedTypeComponents(Type elementType) + : ranked(false), elementType(elementType), attr(nullptr) {} template ::value>> ShapedTypeComponents(Arg &&arg, Type elementType = nullptr,