Skip to content

Commit 1249b56

Browse files
committed
[FOLD] use correct function type for comparison
1 parent b88d161 commit 1249b56

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
@@ -10417,7 +10417,7 @@ Sema::CheckMemberSpecialization(NamedDecl *Member, LookupResult &Previous) {
1041710417
Adjusted = adjustCCAndNoReturn(Adjusted, Method->getType());
1041810418
// This doesn't handle deduced return types, but both function
1041910419
// declarations should be undeduced at this point.
10420-
if (!Context.hasSameType(Adjusted, Function->getType()))
10420+
if (!Context.hasSameType(Adjusted, Method->getType()))
1042110421
continue;
1042210422
if (ConstraintSatisfaction Satisfaction;
1042310423
Method->getTrailingRequiresClause() &&

0 commit comments

Comments
 (0)