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

    <tr>
        <th>Summary</th>
        <td>
            [Clang][OpenMP] Dubious temporary expression constructing `OMPLoopScope`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    In
https://github.com/llvm/llvm-project/blob/3189402466d3354a16bef0fb666aafe9e8729efb/clang/lib/CodeGen/CGStmtOpenMP.cpp#L6944-L6946
The `OMPLoopScope` temporary is destroyed at the end of the expression. Is it meant to be a variable definition?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUks1q5SAYhq_GbKTB-HfiwkXbQ0qhpYXODWj8kjgYDWoOc-5-yGmHzmI2s9FP0Bfe59GU4ucIoJF4QOLcmL0uKetxgbh2srHJXfVzROR-qXUriN0jOiA6zL4uu23HtCI6hHD5s91tOf2EsSI62JAsogPresUJ5VI6xgQ3nbQwkclKKY2ZQEF_ogqm4-oYTJyPIH-cHpODJ4jH9PRR1_q2QXx9b8dtQ5S9SMX53bFKRO5_LICRJG-v7y8pbR9j2gBJgiusW8omX7Ev2EGpOV3BYVNxXQBDdDhNn-OvLUMpPsUWPxfsK17BxIprwhawwReTvbEBsIPJR199iogNjdPMKaZMA7o78e5EFaW8WbSS49gLexLO0JPsZW8FUWJiR2MwTDVeU0IFYV1Hu4NNSwRzzrLOMXBgmUKcwGp8aA-mbcpz40vZQXeM9Jw3wVgI5aaM0i9q9LCX9U2C3eeCOAm-1PIdUX0NN8-PtxfijMTDJ1Qkzvi8W5_28he0byp4TLHUvI_Vx_kfpJs9B_3fH-RWqSA6fLW6aPo7AAD__8Y80IE">