forked from OSchip/llvm-project
[llvm-cov] Fix a bot failure due to r313417
There's a type mismatch issue with the arguments to a call to std::min introduced in r313417. http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15/builds/11174 llvm-svn: 313422
This commit is contained in:
parent
80e9a6ccd1
commit
7c779bfee3
|
@ -68,9 +68,9 @@ FunctionCoverageSummary::get(const coverage::FunctionRecord &Function) {
|
|||
for (unsigned I = CR.LineStart; I <= CR.LineEnd; ++I)
|
||||
ExecutionCounts[I - LineStart] = ExecutionCount;
|
||||
}
|
||||
unsigned UncoveredLines =
|
||||
std::min(std::count(ExecutionCounts.begin(), ExecutionCounts.end(), 0),
|
||||
(long)LinesNotSkipped);
|
||||
unsigned UncoveredLines = std::min(
|
||||
(unsigned)std::count(ExecutionCounts.begin(), ExecutionCounts.end(), 0),
|
||||
(unsigned)LinesNotSkipped);
|
||||
CoveredLines += LinesNotSkipped - UncoveredLines;
|
||||
NumLines += LinesNotSkipped;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue