[llvm] llvm-cov: Fix a grammar error (PR #179450)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 8 04:46:19 PST 2026
================
@@ -472,7 +472,10 @@ std::unique_ptr<CoverageMapping> CodeCoverageTool::load() {
auto Coverage = std::move(CoverageOrErr.get());
unsigned Mismatched = Coverage->getMismatchedCount();
if (Mismatched) {
- warning(Twine(Mismatched) + " functions have mismatched data");
+ if Mismatched
+ == 1 warning(Twine(Mismatched) + " function has mismatched data");
+ else
+ warning(Twine(Mismatched) + " functions have mismatched data");
----------------
MacDue wrote:
Here's an example test: https://github.com/llvm/llvm-project/blob/main/llvm/test/tools/llvm-cov/cov-comdat.test
This is the kind of test you'd make to check tool output.
https://github.com/llvm/llvm-project/pull/179450
More information about the llvm-commits
mailing list