projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c47aa3c
)
Fix signed-compare warning.
author
Justin Lebar
<justin.lebar@gmail.com>
Fri, 26 Feb 2021 02:14:40 +0000
(18:14 -0800)
committer
Justin Lebar
<justin.lebar@gmail.com>
Fri, 26 Feb 2021 02:14:40 +0000
(18:14 -0800)
Introduced in my
c90dac27e94ec354a3e8919556ac5bc89b62c731
.
clang/lib/Sema/Sema.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/Sema.cpp
b/clang/lib/Sema/Sema.cpp
index
9885c1f
..
181a56f
100644
(file)
--- 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()) {