<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/140336>140336</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] Instruction referencing instruction not embedded in a basic block!
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
k-arrows
</td>
</tr>
</table>
<pre>
Reproducer:
https://godbolt.org/z/6954MqYjs
```c
void f (int i)
{
switch (i)
{
int j;
#pragma omp allocate(j)
}
}
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckcuO2yAUhp_meIMSEQy-LFhkFFnqYtSquy65HDtkMLiAE7VPX9kz1USDkEDn41z4f5WzmwKiBPEC4lKptVxjkm8HlVJ85EpH-0f-xCVFuxpMUJ-Bnq-lLHm7sgHYMEWroy_HmCZgw19gQ9ML_vr71y0DPUND37cBer5HZ8lIgHUuFOKA9duL9gXomZD8cMVcd_gOCCHkP9zWlnOD-jMArF6SmmZF4rwQ5X00qiCw7vZc4LL3uDzPUllZ277uVYXy1PKW877r6-oqW922umnHVoyis5wbY6xFLnDsG9p1beUko0xQcWop41zUx9M4cqFHNTa272nNgVOclfNH7-_zpknlcl5Rnjit66bySqPPu9qMBXyQnQJjm_hJbkkHvU4ZOPUul_xZprjid5u-Lxhef4C4kG8hl7Sa4mIgCUdMGIwLE3FP8RALwVmjtWiJC0QRrbIzRPto3oCdqjV5-cVQV66rPpo4Axu2_h_HYUnxhqYAG_apM7Dh41t3yf4FAAD__wGLsCo">