This is an archive of the discontinued LLVM Phabricator instance.

Fix spurious warnings about unused private field
ClosedPublic

Authored by ogoffart on May 8 2016, 4:08 AM.

Details

Summary

If the address of a field is taken as a pointer to member, we should
not warn that the field is not used.

Normaly, yse of fields are done from MemberExpr, but in case of pointer to
member, it is in a DeclRefExpr

Diff Detail

Repository
rL LLVM

Event Timeline

ogoffart updated this revision to Diff 56514.May 8 2016, 4:08 AM
ogoffart retitled this revision from to Fix spurious warnings about unused private field.
ogoffart updated this object.
ogoffart added reviewers: cfe-commits, djasper.
djasper accepted this revision.May 8 2016, 10:52 AM
djasper edited edge metadata.

Looks good.

This revision is now accepted and ready to land.May 8 2016, 10:52 AM
This revision was automatically updated to reflect the committed changes.