diff --git a/mlir/include/mlir/IR/AttrTypeBase.td b/mlir/include/mlir/IR/AttrTypeBase.td --- a/mlir/include/mlir/IR/AttrTypeBase.td +++ b/mlir/include/mlir/IR/AttrTypeBase.td @@ -431,6 +431,7 @@ auto &front() const { return getValue().front(); } auto &back() const { return getValue().back(); } auto &operator[](size_t index) { return getValue()[index]; } + operator }] # returnType # [{() const { return getValue(); } }]; }