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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user