[llvm-cov] reset executation count to 0 after wrapped segment
authorZequan Wu <zequanwu@google.com>
Fri, 31 Jul 2020 06:36:31 +0000 (23:36 -0700)
committerZequan Wu <zequanwu@google.com>
Wed, 5 Aug 2020 01:38:44 +0000 (18:38 -0700)
commite3df9471750935876bd2bf7da93ccf0eacca8592
tree395f7e37fbb441ede84d91a9bf40c30c257778a6
parentfe74f731e7024ce8b66869777dca6d6ed5a22e47
[llvm-cov] reset executation count to 0 after wrapped segment

Fix the bug: https://bugs.llvm.org/show_bug.cgi?id=36979. It also fixes this bug: https://bugs.llvm.org/show_bug.cgi?id=35404, which I think is caused by the same problem.

Differential Revision: https://reviews.llvm.org/D85036
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
llvm/test/tools/llvm-cov/Inputs/instrprof-comdat.h
llvm/test/tools/llvm-cov/ignore-filename-regex.test
llvm/unittests/ProfileData/CoverageMappingTest.cpp