Skip to content

Commit 2e92542

Browse files
authored
Merge pull request #64462 from hyp/eng/fix-size-template-warn
[interop] NFC, fix an integer comparison warning in VisitClassTemplat…
2 parents a28cba3 + 426772e commit 2e92542

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,9 +2721,9 @@ namespace {
27212721
// case, its not worth the compile time, so bail.
27222722
// TODO: this could be configurable at some point.
27232723
size_t specializationLimit = !isPair ? 1000 : 10000;
2724-
if (!isPair &&
2725-
llvm::size(decl->getSpecializedTemplate()->specializations()) >
2726-
specializationLimit) {
2724+
if (size_t(
2725+
llvm::size(decl->getSpecializedTemplate()->specializations())) >
2726+
specializationLimit) {
27272727
std::string name;
27282728
llvm::raw_string_ostream os(name);
27292729
decl->printQualifiedName(os);

0 commit comments

Comments
 (0)