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

    <tr>
        <th>Summary</th>
        <td>
            compile error to delete __ptr32
        </td>
    </tr>

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

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

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

<pre>
    Here is the code to reproduce the problem. Note: that works fine for msvc.
```
int* __ptr32 AA = nullptr;

int main (int argc, char** argv)
{
    AA = new int (12);
    delete AA;
    
    return 0;
}

```
Getting the error below when try to delete __ptr32 pointer.
> <source>:6:12: error: 'delete' cannot delete objects of type 'int' in address space '4294967293'
>     delete AA;

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUstyozAQ_BpxmQoFEg9z4ODE2d3T_kJKjzEokRElCbvy9zuwppx9UKLoGc20ehopbz77HxgQbIQ0ImhvEJKHgHPwZtG4ZQkrh5ccfvqETBwpKRPcfPiIcLYTwtkHuMSrzllxYsWRNcV9baGdEuNHeHubUxAcjkdg4gTT4hwlmHi-N-21cJF2AsYPK5Zh0Iy_gB5lIJKVh1JXxrt7V3tvB3p2ZrzB2ksUJV8rxZcagw4TUukf2QcKmJYwQfHQ1Z6-Cvxrtu-Ykp2GzSYMgXxQ6PwNbiNOkMLnaub9yH3-2ZM4DLtX4pVEv0S_BE3evpK9Db0knHzeGFfAePubhQBoOU0-7bRevaNOEfwZ0ueMa-lmeEsegDQmYIwQZ6m3rYp3Vde0vBMUPBT835nM9MJ0opNZsslhr_1ltm4f9J_JsiW4fkxpjiSZ8W-0BpvGReXUSIFz1_3zRFdqlU2hjXHBSKCueNVkY1-KppVGqlZXHS_K6ixbYZSoC2Fkc-h05iR5HHtWPzPOt5-9UhBm9SmzPS84L0TRlmV9qIpcGaVKrg68MTVXqFlVIN0wl686ch-GLPSbJLUMkTadjSk-NmWMdpgQt-OIXy5p9KGfZMAPPb5n29n9pv0Xltn9CQ">