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

    <tr>
        <th>Summary</th>
        <td>
            [Flang] no debug line table after D136543
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang:ir
      </td>
    </tr>

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

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

<pre>
    After https://reviews.llvm.org/D136543 Flang is not producing debug line table for compiled Fortran programs.  Even though the new code can translate MLIR Locaction's into debug line entries, it bails out for functions (llvm.func) that do not provide FusedLoc with the metadata holding DIScopeAttr.

I suppose the expectation is that the MLIR producer (e.g. Flang front-end) establishes proper FusedLoc for the generated func.func's, which are then propagated to llvm.func during conversion to LLVM dialect.

FYI, @River707
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlU8GOmzAQ_Rq4jBaBCRAOHNKmkSJlL1upUo82HsCtYyPbJG2_vmNvuu2qEsKa8fPMe89jYeXP4TAFdLCEsPqsPmTsRJ_Dm8K7L7S-XQvrZkodq7ptdjWcNDczKA_GBlidlduoKCFRbDNoZRACFxphsg5Ge12VRgkn64LjJuJnx6--APh0QwNhsdu80IJg8E54iTASLoK95gHh-XJ-gYsd-RiUNRnrPCgT7L_90ASn0GfsI6gAgivtwW4hMZg2kw56yNg-qYmZjPXUkweQ9o-Mm6LWp82jpGZwV-GV1RUDlzxwWKyWUefx_Hm0Kx5CcEVWHrPy8Po_g9_W1XpMx_DHimPgsXO0KvWK-aTm1TTynChhMRcPSydnTXhCIyM79NFF5Rf0Eb8S-o1c1BWLzWjQkUcyqXwI65IP90WNC3CX2CTbVz4nKFn3ZgPIzUVNozU3dD6Spe3L5cszSMU1KXgn8fT1HGtnu_JFEb4ruxyHqm3bru-7fpfLoZZ93fM8qKBxyJoPSVjWHMnk_weEp7l7jFW-OT28n8GZ7mATBc0QBZHzY3kiNd-IG4XK-y1e_KnZt_UuX4b9DoVErLCRFWN70Zeywk7wSUjRjV2day5Q-8gtY2xK9OqDchQQzVwNrGSsKllbNQ1VLITo9-Ounap9LbHretKOVxqwt4eRuyFxIm2eNunGwt9Xk3Pv1WwweRHr840G3g23X_z7wp3KE_8hkf8NfTcvoQ">