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

    <tr>
        <th>Summary</th>
        <td>
            Error executing --convert-memref-to-emitc
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

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

<pre>
    When I run `mlir-opt test.mlir --convert-memref-to-emitc -o out.mlir` I get the following error:

![Image](https://github.com/user-attachments/assets/daccefd2-8b77-4216-9ef9-212f5d20d815)

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8kcuKJC0QhZ_G3IiFhnkpFy666b-gnuBfe4nMdDDTQiOrp99-yJqGWc2AoBInDofvuNbSsiNaNryz4aNzB62l2sdX1lLKzpf4Zf9fced3Xo-ds1FuOVVRHsQJG13OHxcilP2JlcSGW8VZUBG4JQpcFF6O3yo2Sn7nCxKnFflcci6faV841loq029Mvg4oNrzfN7cgGz4YXFeiRzvHcGNwWxKth7-EsjG4HQ2rcEQurBvu1BjcXGv4ekQXAs4RxNVPk-hBjcLgbAQomIcIMl7VwMAw-dZFq6PRxnVo1aR73V-l1N1qlQ8wexMB9KzV1M_DFKI0Uvd9nMMwdcmChF6BGpUCKfVlBB9G483kJzWZybFe4uZSvuT83C6lLl1q7UB7qsexy85jbi_yADt-8teUAZxFVHsuCX8sjfUyp0btjw0lymj_O8lx_InhoJPkX2vojprtP0Cevt-XeNTyAwMxuL3SnCy_4z4t_AoAAP__6HSv0w">