Skip to content

Conversation

@apple-fcloutier
Copy link

Cherry-pick of llvm#113745 to stable/20240723.

Before this change, ParseObjc would call the closing MaybeParseAttributes before
it had created Objective-C ParmVarDecl objects (and associated name lookup
entries), meaning that you could not reference Objective-C method parameters in
__attribute__((diagnose_if)). This change moves the creation of the ParmVarDecl
objects ahead of calling Sema::ActOnMethodDeclaration so that
MaybeParseAttributes can find them. This is already how it works for C
parameters hanging off of the selector.

rdar://138596211
@apple-fcloutier
Copy link
Author

@swift-ci please test llvm

@apple-fcloutier
Copy link
Author

@swift-ci test

@apple-fcloutier
Copy link
Author

FAIL: Swift(iphonesimulator-x86_64) :: embedded/attr-unavailable-in-embedded.swift (10219 of 18334)

@apple-fcloutier
Copy link
Author

@swift-ci test

@apple-fcloutier apple-fcloutier merged commit b065b0e into stable/20240723 Nov 4, 2024
4 of 5 checks passed
@apple-fcloutier apple-fcloutier deleted the apple-fcloutier/apple/138596211 branch November 4, 2024 22:25
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.

2 participants