<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:paul_robinson@playstation.sony.com" title="Paul Robinson <paul_robinson@playstation.sony.com>"> <span class="fn">Paul Robinson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - clang -g doesn't record correct line number"
   href="https://llvm.org/bugs/show_bug.cgi?id=28596">bug 28596</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - clang -g doesn't record correct line number"
   href="https://llvm.org/bugs/show_bug.cgi?id=28596#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - clang -g doesn't record correct line number"
   href="https://llvm.org/bugs/show_bug.cgi?id=28596">bug 28596</a>
              from <span class="vcard"><a class="email" href="mailto:paul_robinson@playstation.sony.com" title="Paul Robinson <paul_robinson@playstation.sony.com>"> <span class="fn">Paul Robinson</span></a>
</span></b>
        <pre>This is a long-standing problem with FastISel code generation.
I'm pretty sure PR14501 is the same issue:

<span class="quote">> int func() {
>   func2();
>   return 0;
> }</span >
>
<span class="quote">> The instruction following the func2 call is assigned to the same line
> as "return 0" in GCC's debug info. In Clang's debug info this line has
> no debug info of its own, so it is on the same line as the prior instruction
> (the call to func2).</span >

I suspect <a href="https://reviews.llvm.org/D16569">https://reviews.llvm.org/D16569</a> would fix it.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Debug info for constants have no line information"
   href="show_bug.cgi?id=14501">bug 14501</a> ***</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>