This is an archive of the discontinued LLVM Phabricator instance.

Fix false negative in -Wthread-safety-attributes
ClosedPublic

Authored by aaronpuchert on Mar 16 2021, 10:43 AM.

Details

Summary

The original implementation didn't fire on non-template classes when a
base class was an instantiation of a template with a dependent base.
In that case the base of the base is dependent as seen from the base,
but not from the class we're interested in, which isn't a template.

Also it simplifies the code a lot.

Diff Detail

Event Timeline

aaronpuchert requested review of this revision.Mar 16 2021, 10:43 AM
aaronpuchert created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 10:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Mar 24 2021, 8:59 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 24 2021, 8:59 AM
This revision was landed with ongoing or failed builds.Mar 24 2021, 9:46 AM
This revision was automatically updated to reflect the committed changes.