diff --git a/xls/contrib/mlir/IR/xls_ops.td b/xls/contrib/mlir/IR/xls_ops.td index ed481b35c8..5d9e4f8c7d 100644 --- a/xls/contrib/mlir/IR/xls_ops.td +++ b/xls/contrib/mlir/IR/xls_ops.td @@ -55,7 +55,9 @@ def Xls_ArrayType : Xls_Type<"Array", [ShapedTypeInterface]> { ]; let extraClassDeclaration = [{ constexpr bool hasRank() { return true; } - ::llvm::ArrayRef getShape() const { return getNumElements(); } + ::llvm::SmallVector getShape() const { + return ::llvm::SmallVector(1, getNumElements()); + } ::mlir::ShapedType cloneWith(std::optional> shape, Type elementType) { assert(0 && "ArrayType::cloneWith unimplemented!");