<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Spurious -Wprofile-instr-out-of-date"
   href="https://llvm.org/bugs/show_bug.cgi?id=24996">24996</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Spurious -Wprofile-instr-out-of-date
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chisophugis@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14957" name="attach_14957" title="reproducer">attachment 14957</a> <a href="attachment.cgi?id=14957&action=edit" title="reproducer">[details]</a></span>
reproducer

Hi Justin, I finally managed to track down this issue. Full repro is attached,
but the summary is that I'm seeing:

warning: profile data may be out of date: of 3 functions, 1 has no data and 0
have mismatched data that will be ignored [-Wprofile-instr-out-of-date]
1 warning generated.


generated from this program:

struct Foo {                                                                    
  Foo() {}
};

Foo f;

int main() {
}

It seems to have to do with the static constructor.</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>