Requestify the computation of the list of memberwise initialized properties.

Fixes rdar://110776763, a case where initialized stored properties
introduced by peer macros weren't working alongside declared stored
properties.
This commit is contained in:
Doug Gregor
2023-06-22 12:51:01 -07:00
parent ce4ec06547
commit e89fdd3084
12 changed files with 93 additions and 17 deletions

View File

@@ -3415,7 +3415,7 @@ collectMembersForInit(ResolvedCursorInfoPtr CursorInfo,
SourceManager &SM = nominalDecl->getASTContext().SourceMgr;
for (auto member : nominalDecl->getMembers()) {
for (auto member : nominalDecl->getMemberwiseInitProperties()) {
auto varDecl = dyn_cast<VarDecl>(member);
if (!varDecl) {
continue;