Skip to content

Commit 196871c

Browse files
committed
[FOLD] refactor isSameOrCompatibleFunctionType
1 parent 6815127 commit 196871c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Sema/SemaTemplateDeduction.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,12 +1323,10 @@ bool Sema::isSameOrCompatibleFunctionType(QualType P, QualType A) {
13231323
return Context.hasSameType(P, A);
13241324

13251325
// Noreturn and noexcept adjustment.
1326-
QualType AdjustedParam;
1327-
if (IsFunctionConversion(P, A, AdjustedParam))
1328-
return Context.hasSameFunctionTypeIgnoringExceptionSpec(AdjustedParam, A);
1326+
if (QualType AdjustedParam; IsFunctionConversion(P, A, AdjustedParam))
1327+
P = AdjustedParam;
13291328

13301329
// FIXME: Compatible calling conventions.
1331-
13321330
return Context.hasSameFunctionTypeIgnoringExceptionSpec(P, A);
13331331
}
13341332

0 commit comments

Comments
 (0)