1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[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:
Vedant Kumar 2017-09-15 23:14:22 +00:00
parent 948dca7019
commit 9bf41686e1

View File

@ -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;
}