diff options
author | Vedant Kumar <vsk@apple.com> | 2017-09-15 23:00:02 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-09-15 23:00:02 +0000 |
commit | 51d8f887db26815576af25c24c5c70b1b03b6830 (patch) | |
tree | c814b7670fc0473b1f57796569e42ff68152a152 /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | |
parent | c445e65d0969dba334b4b1cb545457f98f5c654c (diff) | |
download | bcm5719-llvm-51d8f887db26815576af25c24c5c70b1b03b6830.tar.gz bcm5719-llvm-51d8f887db26815576af25c24c5c70b1b03b6830.zip |
[llvm-cov] Avoid over-counting covered lines and regions
* Fix an unsigned integer overflow in the logic that computes the
number of uncovered lines in a function.
* When aggregating region and line coverage summaries, take into account
that different instantiations may have a different number of regions.
The new test case provides test coverage for both bugs. I also verified
this change by preparing a coverage report for a stage2 build of llc --
the new assertions should detect any outstanding over-counting bugs.
Fixes PR34613.
llvm-svn: 313417
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
0 files changed, 0 insertions, 0 deletions