Skip to content

Commit 392ff1b

Browse files
committed
[FOLD] use correct function type for comparison
1 parent 6bfa0f7 commit 392ff1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10375,7 +10375,7 @@ Sema::CheckMemberSpecialization(NamedDecl *Member, LookupResult &Previous) {
1037510375
Adjusted = adjustCCAndNoReturn(Adjusted, Method->getType());
1037610376
// This doesn't handle deduced return types, but both function
1037710377
// declarations should be undeduced at this point.
10378-
if (!Context.hasSameType(Adjusted, Function->getType()))
10378+
if (!Context.hasSameType(Adjusted, Method->getType()))
1037910379
continue;
1038010380
if (ConstraintSatisfaction Satisfaction;
1038110381
Method->getTrailingRequiresClause() &&

0 commit comments

Comments
 (0)