[llvm-bugs] [Bug 24996] New: Spurious -Wprofile-instr-out-of-date

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 29 21:53:31 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24996

            Bug ID: 24996
           Summary: Spurious -Wprofile-instr-out-of-date
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: chisophugis at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14957
  --> https://llvm.org/bugs/attachment.cgi?id=14957&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150930/a413b748/attachment.html>


More information about the llvm-bugs mailing list