Merge commit d803c61aca0d from llvm git (by Corentin Jabot):

[Clang] Fix a regression introduced by #147046 (#150893)

  Static functions have an implicit object argument during deduction.

This fixes an assertion while compiling the devel/corrade port.

PR:		292067
MFC after:	1 month
This commit is contained in:
Dimitry Andric
2026-02-14 21:42:18 +01:00
parent 3fd796204f
commit 1dfe63e4f7
@@ -8042,8 +8042,8 @@ static void AddTemplateOverloadCandidateImmediately(
Candidate.IgnoreObjectArgument =
isa<CXXMethodDecl>(Candidate.Function) &&
cast<CXXMethodDecl>(Candidate.Function)
->isImplicitObjectMemberFunction() &&
!cast<CXXMethodDecl>(Candidate.Function)
->isExplicitObjectMemberFunction() &&
!isa<CXXConstructorDecl>(Candidate.Function);
Candidate.ExplicitCallArguments = Args.size();