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

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] `parallel masked` is ignored
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp
      </td>
    </tr>

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

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

<pre>
    We don't error out but simply ignore the region, kinda bad:

https://godbolt.org/z/eb7a9oTEo
```
void foo();

void masked() {
    #pragma omp parallel masked
    {
        foo();
 }
}
```
results in
```
define dso_local void @masked() #0 !dbg !11 {
  ret void, !dbg !16
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Us1u3DwMfBr6QmQhUeu_gw9fvq1vRXso0GMhWYxXiWwZkhwgffrCrtts0tYwREmcIQfi6JTcODN3UN5DeSn0mq8hdo82cHzgmAsT7Ev3ldGGGajOyDGGiGHNaNaMyU2Lf0E3ziEy5itj5NFt0P_xyc1Wo9EW1H8gLiCO9ZrzkrY76oH6MVgTfD6FOAL134F6NrVuw5cP4SBV4vj343NwFh9CAGqAWlD3t6X35KTTE9ufeYT6ACAiAqkl6nHSGKYFFx219-x_EV5ht5zt-7MdQn05Gv_evNUZOa0-J3TzX9OWH9zMaFP45sOgPe7S4SzeqiclEEhaM25BylttkfPO2t76BlP9S1dhO2Vb1eqCO1nV6lxJIam4droptTxrTVXZ0GCUGiQPdVPLtiFVn03hOhKkhJRSNrIq6VQZ3VQt68YOxEOj4Sx40s6fvH-etlEWLqWVu7JtVVt4bdin3WFEYeF5WoBoc1vsNsKdWccEZ-Fdyum1RHbZ7778tPD88TOUF4RKvJ9aJdClw4C2WKPv3vnL5etqTkOYgPqt9hHulhgeechA_a41AfW73B8BAAD__y4s4es">