<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/99619>99619</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[IR] Missing assertion for empty range attribute
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nikic
</td>
</tr>
</table>
<pre>
Per LangRef, range attributes cannot represent an empty range. However, this is currently only enforced in the IR parser, but there is neither an assertion nor verifier check otherwise. As such, you'll only notice this mistake when trying to round-trip through textual IR.
cc @andjo403
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMUl2P2yAQ_DX4ZXUWwV_hwQ_XnqKe1EpV_gHGa5s7AtayJPW_rxxXur4AYnd2RjtjUnJzQOxF8000b4XJvETqg_t0thjiuPW_keCnCfMVJ6G-A5kwIxhmckNmTGBNCJGBcCVMGBhMALytvB2tJfyID7wj7WBeXAKXwGYiDOw3iMFvgGGKZHEEF4AXhPcrrIbSgRky75-EOzCg2987h0kJiV0MECLBHclNDgnsgvYT4t71cAlLeE2Qsl32UVvMQnXeH6whsrN4aLq5xOYT4bFgAKbNhRk4AsUcxhcmtwIvFPO8AOMfzsbD-7UU8k3I1-O0FkQtTRg_Yi0rKMa-GnWlTYH9qVOn6nyS56ZY-q6ra9PI09hifdZaj5OUcmyxOw96alpduF5JVcvupKVWdd2UXWuVsp2uVF2haRtRS7wZ50vv77cy0ly4lDL2WrcnXXgzoE9PN5UK-IBnUSi1m0v9jnkZ8pxELb1LnL6msGP_jMH7VTRv8MultG_ha81TpP-N_cpAkcn3C_OaRPUq1EWoy-x4yUNp402oy07x73pZKX6gZaEuT2FJqMsh_N6rvwEAAP__3hzZwA">