Skip to content

Commit 246c45c

Browse files
committed
Sema: Split addImplicitConstructors() into separate functions for structs and classes
1 parent 1d30654 commit 246c45c

File tree

5 files changed

+170
-158
lines changed

5 files changed

+170
-158
lines changed

lib/Sema/CalleeCandidateInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ void CalleeCandidateInfo::collectCalleeCandidates(Expr *fn,
590590

591591
// TODO: figure out right value for isKnownPrivate
592592
if (instanceType->mayHaveMembers()) {
593-
auto ctors = CS.TC.lookupConstructors(
594-
CS.DC, instanceType, NameLookupFlags::IgnoreAccessControl);
593+
auto ctors = TypeChecker::lookupConstructors(
594+
CS.DC, instanceType, NameLookupFlags::IgnoreAccessControl);
595595
for (auto ctor : ctors) {
596596
if (!ctor.getValueDecl()->hasInterfaceType())
597597
CS.getTypeChecker().validateDeclForNameLookup(ctor.getValueDecl());

0 commit comments

Comments
 (0)