summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-09-15 23:14:22 +0000
committerVedant Kumar <vsk@apple.com>2017-09-15 23:14:22 +0000
commit7c779bfee319dc2a9ea2de3a79af61dca41800d9 (patch)
treeeb7e0ed624cd27401a2dd9f491f1f3607aec1ab2 /llvm/tools
parent80e9a6ccd120bae15045abaa204bf93b0dd1503d (diff)
downloadbcm5719-llvm-7c779bfee319dc2a9ea2de3a79af61dca41800d9.tar.gz
bcm5719-llvm-7c779bfee319dc2a9ea2de3a79af61dca41800d9.zip
[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
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-cov/CoverageSummaryInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cov/CoverageSummaryInfo.cpp b/llvm/tools/llvm-cov/CoverageSummaryInfo.cpp
index 16ae8aaa449..b9705c09ab6 100644
--- a/llvm/tools/llvm-cov/CoverageSummaryInfo.cpp
+++ b/llvm/tools/llvm-cov/CoverageSummaryInfo.cpp
@@ -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;
}
OpenPOWER on IntegriCloud