Skip to content

Conversation

@ellishg
Copy link
Contributor

@ellishg ellishg commented Sep 2, 2025

Some downstream work broke these tests because the attribute number changed. Refactor these tests to be more resilient in the face of changes like this

  • instrument-objc-method.m
    • #1 was never checked, I think it was trying to check that __cyg_profile_func_enter was not used, so I added --implicit-check-not="__cyg_profile_func_enter"
    • Use [[#ATTR:]] so the test doesn't fail if the number changes
  • address-safety-attr.mm
    • Check attributes in Function Attrs: so it's independent of the attribute number

@ellishg ellishg marked this pull request as ready for review September 2, 2025 19:44
Copy link
Collaborator

@hiraditya hiraditya left a comment

Choose a reason for hiding this comment

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

I'm not actively working on it but LGTM as it is NFC.

@ellishg ellishg merged commit eee7211 into llvm:main Sep 4, 2025
12 checks passed
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