-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[IRGen] Visit members generated by peer macros in ClassDataBuilder. #67314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
by calling getAllMembers() instead of getMembers() in TypeMemberVisitor::visitImplementationMembers.
@swift-ci please smoke test |
@swift-ci Please smoke test macOS platform |
in evaluateMembersRequest.
@swift-ci please smoke test |
There was a problem hiding this 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
Thanks for the fix @hborla |
@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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice, thank you!
|
@swift-ci please smoke test Linux |
3 similar comments
@swift-ci please smoke test Linux |
@swift-ci please smoke test Linux |
@swift-ci please smoke test Linux |
ClassDataBuilder
was skipping members generated by peer macros becauseTypeMemberVisitor::visitImplementationMembers
calledgetMembers()
instead ofgetAllMembers()
.Resolves rdar://112217268 and the runtime crash that was hit in #67289