[clang] e890fff - Fix signed-compare warning.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 25 18:15:42 PST 2021
Author: Justin Lebar
Date: 2021-02-25T18:14:40-08:00
New Revision: e890fffcab8b7e95deba4269c14db9fab003a737
URL: https://github.com/llvm/llvm-project/commit/e890fffcab8b7e95deba4269c14db9fab003a737
DIFF: https://github.com/llvm/llvm-project/commit/e890fffcab8b7e95deba4269c14db9fab003a737.diff
LOG: Fix signed-compare warning.
Introduced in my c90dac27e94ec354a3e8919556ac5bc89b62c731.
Added:
Modified:
clang/lib/Sema/Sema.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 9885c1fadced..181a56fb0851 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -2308,8 +2308,8 @@ bool Sema::tryExprAsCall(Expr &E, QualType &ZeroArgCallReturnTy,
/// ill-formed expression.
static void noteOverloads(Sema &S, const UnresolvedSetImpl &Overloads,
const SourceLocation FinalNoteLoc) {
- int ShownOverloads = 0;
- int SuppressedOverloads = 0;
+ unsigned ShownOverloads = 0;
+ unsigned SuppressedOverloads = 0;
for (UnresolvedSetImpl::iterator It = Overloads.begin(),
DeclsEnd = Overloads.end(); It != DeclsEnd; ++It) {
if (ShownOverloads >= S.Diags.getNumOverloadCandidatesToShow()) {
More information about the cfe-commits
mailing list