<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vsk@apple.com" title="Vedant Kumar <vsk@apple.com>"> <span class="fn">Vedant Kumar</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - llvm-cov: Coverage for destructors wrong with optimizations"
   href="https://bugs.llvm.org/show_bug.cgi?id=34255">bug 34255</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>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WORKSFORME
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - llvm-cov: Coverage for destructors wrong with optimizations"
   href="https://bugs.llvm.org/show_bug.cgi?id=34255#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - llvm-cov: Coverage for destructors wrong with optimizations"
   href="https://bugs.llvm.org/show_bug.cgi?id=34255">bug 34255</a>
              from <span class="vcard"><a class="email" href="mailto:vsk@apple.com" title="Vedant Kumar <vsk@apple.com>"> <span class="fn">Vedant Kumar</span></a>
</span></b>
        <pre>I can reproduce the issue when I add `-target x86_64-linux-gnu`, but not on
Darwin.

I ran opt-bisect and found that it isn't an optimization issue: the IR clang
generates defines _ZN3BarD2Ev at -O0, but simply doesn't at -O1, with/without
any profiling instrumentation.

Given that the destructor we're talking about isn't called/defined I don't
think this is a bug in the instrumentation. It'd be great to have someone
familiar with the Linux ABI comment on why _ZN3BarD2Ev is never emitted.</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>