Skip to content

[clang] Fix lifetimebound APINotes tests #9653

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

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

Xazax-hun
Copy link

The APINotes implementation upstream and downstream are not exactly the same, this PR makes sure the lifetimebound type attribute for 'this' object is deduplicated, and updates the test to respect versioned attributes.

rdar://140295698

@Xazax-hun Xazax-hun requested a review from egorzhdan November 21, 2024 14:12
@Xazax-hun
Copy link
Author

@swift-ci please test LLVM

Copy link

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

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

Is the diff caused by something that we could potentially upstream?

@Xazax-hun
Copy link
Author

I did not isolate the commit yet that causes the difference, but I don't think there is anything that would prevent us from doing that. It is more just the matter of allocating time for that.

@Xazax-hun
Copy link
Author

I talked to @egorzhdan offline and the code changes make sense to upstream (PR opened: llvm#117194). There is a smaller test-only change that make sense to do downstream for now, will update this PR.

@Xazax-hun Xazax-hun force-pushed the gaborh/duplicate-lifetimebound branch from 13dec4d to 5f891eb Compare November 25, 2024 11:04
The APINotes implementation upstream and downstream are not exactly the
same, this PR makes sure the lifetimebound type attribute for 'this'
object is deduplicated, and updates the test to respect versioned
attributes.

rdar://140295698
@Xazax-hun Xazax-hun force-pushed the gaborh/duplicate-lifetimebound branch from 5f891eb to eb39ee7 Compare November 25, 2024 18:20
@Xazax-hun
Copy link
Author

@swift-ci please test LLVM

Copy link

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xazax-hun Xazax-hun merged commit af2c35f into next Dec 2, 2024
0 of 2 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/duplicate-lifetimebound branch December 2, 2024 12:32
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