This is an archive of the discontinued LLVM Phabricator instance.

[clang] Don't make synthesized accessor stub functions visible twice
ClosedPublic

Authored by teemperor on Jul 28 2020, 11:22 PM.

Details

Summary

addDecl is making the Decl visible, so there is no need to make it explicitly
visible again. Making it visible twice will also make the lookup storage less
efficient and potentially lead to crashes, see D84827 for that.

Diff Detail

Event Timeline

teemperor requested review of this revision.Jul 28 2020, 11:22 PM
teemperor created this revision.
teemperor set the repository for this revision to rC Clang.
aprantl accepted this revision.Jul 31 2020, 5:29 PM

All for deleting the cargo-cult code. Thanks!

This revision is now accepted and ready to land.Jul 31 2020, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2020, 7:24 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript