Skip to content

Remove unneeded check in CFRelease and CFRetain. #3104

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
Sep 13, 2022

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Oct 30, 2021

If they were NULL, the program would just exit so this check is not needed.

@AZero13 AZero13 force-pushed the CFRetain branch 2 times, most recently from 5ba7cd6 to 51a7663 Compare November 12, 2021 15:46
@AZero13
Copy link
Contributor Author

AZero13 commented Jan 24, 2022

@etcwilde any updates?

@etcwilde
Copy link
Contributor

This should be okay given that the definition of __CFGenericAssertIsCF checks the input over in CFRuntime.c.
That said, I'm going to defer to @millenomi since they're more familiar with this repo.

@etcwilde
Copy link
Contributor

@swift-ci please test

@AZero13
Copy link
Contributor Author

AZero13 commented Jan 25, 2022

OK I think it will work now. I just had to rebase

@AZero13 AZero13 force-pushed the CFRetain branch 2 times, most recently from 086e6ab to be48f55 Compare January 25, 2022 19:31
@AZero13
Copy link
Contributor Author

AZero13 commented Jan 25, 2022

@etcwilde can we try one more time?

@etcwilde
Copy link
Contributor

@swift-ci please test

@Kyle-Ye
Copy link

Kyle-Ye commented Feb 2, 2022

Please test with following PRs:
swiftlang/swift#41115

@swift-ci please test macOS platform

@Kyle-Ye
Copy link

Kyle-Ye commented Feb 2, 2022

The macOS Platform failing seems to be a bug by others which should be fixed by this PR swiftlang/swift#41115

If they were NULL, the program would just exit so this check is not needed
@parkera
Copy link
Contributor

parkera commented Sep 8, 2022

@swift-ci test

@AZero13
Copy link
Contributor Author

AZero13 commented Sep 11, 2022

@parkera Thank you!

@parkera parkera merged commit fed1cc3 into swiftlang:main Sep 13, 2022
@AZero13 AZero13 deleted the CFRetain branch October 2, 2022 03:30
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