<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56860>56860</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [mlir] `DenseArrayAttrBase::size` returns 1 for an empty array
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir:core
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            joker-eph
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Mogball
      </td>
    </tr>
</table>

<pre>
    An empty dense array returns 1 for its size when queried through the `ElementsAttr` API. E.g. `[:i32]` 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxVj99ugyAUxp9GbkgNitB6wYVNu2QXS_YKoEehQ3GAW7qnH5g2yxKSw5fv_Pl9yg130S0Y5jXe8QBLACy9l3fsIW5-CbjCo_PYxICD-QH8rWHBnxt4AwOO2rtt0qkCLji5WphhiaGL0SeJu_fXEl_Lqcxmwc4F7QytC3bJJgJRcdbSY3UkBA2CDi1tJYomWhCpebbGp9Y8eslYXabKm88yQNqUXgbKq_6jymeaPQfavBU6xjXkmfolvclEvamyd3MS1n49y2H17gZ9TNKEsEFIH8ZPnCAtCJN90596NkoYKKUVb8aqamVLR8lYy5CVCmzI4EVd7-y0652HpFIKZERN6pqcSFVx2rC2JLxX6sQ58LpRahiLhsAsjS0zSen8hLzYodQ2hWRaE2L4M2UIZloAHgdv7gP8AVb9OCe3qJ0Xb25S0lq0xxF7ll-M151M">