Skip to content

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 14, 2023

ClassDataBuilder was skipping members generated by peer macros because TypeMemberVisitor::visitImplementationMembers called getMembers() instead of getAllMembers().

Resolves rdar://112217268 and the runtime crash that was hit in #67289

by calling getAllMembers() instead of getMembers() in
TypeMemberVisitor::visitImplementationMembers.
@hborla hborla requested review from slavapestov and xedin as code owners July 14, 2023 21:59
@hborla
Copy link
Member Author

hborla commented Jul 14, 2023

@swift-ci please smoke test

@natecook1000
Copy link
Member

@swift-ci Please smoke test macOS platform

@hborla
Copy link
Member Author

hborla commented Jul 17, 2023

@swift-ci please smoke test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm that’s right they need to be kept in the specific order or we’ll get memory issues down the road

@ktoso
Copy link
Contributor

ktoso commented Jul 17, 2023

Thanks for the fix @hborla

@hborla
Copy link
Member Author

hborla commented Jul 17, 2023

@swift-ci please smoke test

@@ -681,6 +681,7 @@ void swift::checkDistributedActorProperties(const NominalTypeDecl *decl) {
if (id == C.Id_actorSystem || id == C.Id_id) {
prop->diagnose(diag::distributed_actor_user_defined_special_property,
id);
prop->setInvalid();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice, thank you!

@ktoso
Copy link
Contributor

ktoso commented Jul 18, 2023

Timed Out Tests (1):
  swift-package-tests :: test-sourcekit-lsp/test-sourcekit-lsp.py

@hborla
Copy link
Member Author

hborla commented Jul 18, 2023

@swift-ci please smoke test Linux

3 similar comments
@hborla
Copy link
Member Author

hborla commented Jul 18, 2023

@swift-ci please smoke test Linux

@hborla
Copy link
Member Author

hborla commented Jul 18, 2023

@swift-ci please smoke test Linux

@hborla
Copy link
Member Author

hborla commented Jul 18, 2023

@swift-ci please smoke test Linux

@hborla hborla merged commit 75ea47d into swiftlang:main Jul 18, 2023
@hborla hborla deleted the missing-peer-property-metadata branch July 18, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants