This is an archive of the discontinued LLVM Phabricator instance.

Correct swift_bridge duplicate attribute warning logic
ClosedPublic

Authored by aaron.ballman on Feb 5 2021, 5:56 AM.

Details

Reviewers
compnerd
Summary

The swift_bridge attribute warns when the attribute is applied multiple times to the same declaration. However, it warns about the arguments being different to the attribute without ever checking if the arguments actually are different. If the arguments are different, diagnose, otherwise silently accept the code. Either way, drop the duplicated attribute.

Diff Detail

Event Timeline

aaron.ballman requested review of this revision.Feb 5 2021, 5:56 AM
aaron.ballman created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2021, 5:56 AM
compnerd accepted this revision.Feb 10 2021, 3:36 PM

Thanks!

This revision is now accepted and ready to land.Feb 10 2021, 3:36 PM
aaron.ballman closed this revision.Feb 11 2021, 4:13 AM

Thanks for the review! I've committed in 81bc1365d8f85a125a6db6a5a1acff3ceddcbe9e