[llvm-bugs] [Bug 35490] llvm-cov: Wrong coverage with multiple binaries and shared code

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 6 15:23:40 PST 2017


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

Vedant Kumar <vsk at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #4 from Vedant Kumar <vsk at apple.com> ---
The root cause here is the same as the one in PR35459. The coverage reader
thinks there is just one canonical record for w(), because it incorrectly
assumes the ODR holds across multiple binaries. It cannot treat multiple
records for w() additively.

The two records for w() (one from 'x' and one from 'y') have the same hash,
which explains why you only see the hash mismatch warning when one of the
definitions are changed.

*** This bug has been marked as a duplicate of bug 35459 ***

-- 
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/20171206/a9f6ad36/attachment.html>


More information about the llvm-bugs mailing list