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

    <tr>
        <th>Summary</th>
        <td>
            Broken lines info (probably) with LTO on mac
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Bisect says this started with 8bb4451a651ac00432d04e020d83f43c445aaebb. Cc @adrian-prantl, @avl-llvm 

Testcase 1 (produced with ld64):
- Download and extract https://drive.google.com/file/d/10ylLkhdTl-_eA4VOFDI4GvOwP7t9BDA0/view?usp=sharing (sorry, I didn't reduce the testcase)
- Change working directory to the extracted `testcase` directory
- Run `dsymutil XUL --user-reproducer .`
- Run `llvm-addr2line -pCfi -e XUL.dSYM/Contents/Resources/DWARF/XUL 0x17e6880`
Expected output:
```
XRE_InitChildProcess(int, char**, XREChildData const*) at /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:262
```
Actual output:
```
XRE_InitChildProcess(int, char**, XREChildData const*) at ??:0
```

Testcase 2 (same build as Testcase 1, but relinked with lld)
- Download and extract https://drive.google.com/file/d/1T4mM0iOEvFnLAB4-MD1KORkxy5Rpvpug/view?usp=sharing (sorry, I didn't reduce the testcase)
- Change working directory to the extracted `testcase` directory
- Run `dsymutil XUL --user-reproducer .`
- Run `llvm-addr2line -pCfi -e XUL.dSYM/Contents/Resources/DWARF/XUL 0x1109ed4`
Expected output:
```
XRE_InitChildProcess(int, char**, XREChildData const*) at /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:262
```
Actual output:
```
mozilla::LazyLogModule::operator mozilla::LogModule*() at /builds/worker/fetches/MacOSX11.3.sdk/usr/include/c++/v1/atomic:990
 (inlined by) GetNSS3Directory(nsTString<char>&) at /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSComponent.cpp:978
 (inlined by) ListPossibleLoadableRootsLocations(mozilla::Vector<nsTString<char>, 0ul, mozilla::MallocAllocPolicy>&) at /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSComponent.cpp:998
 (inlined by) XRE_InitChildProcess(int, char**, XREChildData const*) at /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSComponent.cpp:1944
```
This output actually looks doubly broken (the inlining info is bogus).

In both cases, a build of clang 15's dsymutil with 8bb4451a651ac00432d04e020d83f43c445aaebb reverted produces the expected output.

(this affects both 15 and trunk)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVktv2zgQ_jX0hbBBUQ9bBx8cOyqCdZrAyXazp4IiRxLXNCnw4cT99QsybtIU6QLFAj0VICRBHHK-b97MOdlrgCUqL1C5mbDgB2OXvWJayHCYtEaclhfSAffYsZPDfpAOO8-sB4EfpR_wom2LosxYVWaME1LkVJACCCVikXdFzouiZAzadobXHKOCMGEl09PRMu0Vouv076imSh0PGJENIqvn5z04z5kDnGFEF6M1IvCvSpWoCkRrlJ9lp3hjHrUyTGCmBYYnbxn3ePB-dFGINog2wsojzHpjegUzbg6INp1UEHcQbTJyUtv9IO7V9DOsik83zeaq-HC8ebyd-_pisyKINkcJjyhvghtRvnEDs1L3EZwz1p4ilysspNCIzj22EPFiPwD2ZyYR8RnuemC6B_xo7D7eIaQF7o09YW_SkTMDEBhV5OV8RV4lv960CzrKCHc6BC8Vfvhzi6fT4MBOLZytZvEMVeS7E9HgUyaEpUpqwNNx3Uk8hXjBTNz9fY1oszbag_YO0WYHzgTLIX5v_lrtokGjKvKUzaFaLMiLgsunERJyE_wY_IuPokD1Kvawu_x8paVfD1KJW2s4OIfoQmofDckHZhFdpbXGD7vLJLZhnmFutPNpo8bMY0SbNkglIrBoTrCINnwAvjchIe_jJ6KNN0btpUe0ebLR6dpdHloQTdDcS6PdjI8jyle0ou_iXXEfmPpVpPImrRV5V813CUJTDLID4GQJzBx-TZ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