Skip to content

Commit

Permalink
[FOLD] refactor isSameOrCompatibleFunctionType
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed May 6, 2024
1 parent 6815127 commit 196871c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clang/lib/Sema/SemaTemplateDeduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,12 +1323,10 @@ bool Sema::isSameOrCompatibleFunctionType(QualType P, QualType A) {
return Context.hasSameType(P, A);

// Noreturn and noexcept adjustment.
QualType AdjustedParam;
if (IsFunctionConversion(P, A, AdjustedParam))
return Context.hasSameFunctionTypeIgnoringExceptionSpec(AdjustedParam, A);
if (QualType AdjustedParam; IsFunctionConversion(P, A, AdjustedParam))
P = AdjustedParam;

// FIXME: Compatible calling conventions.

return Context.hasSameFunctionTypeIgnoringExceptionSpec(P, A);
}

Expand Down

0 comments on commit 196871c

Please sign in to comment.