This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Reorder CXXCtorInitializer members
ClosedPublic

Authored by njames93 on Feb 22 2021, 6:39 AM.

Details

Summary

Swapping the order of Init and MemberOrEllipsisLocation removes 8 bytes (20%) of padding on 64bit builds.

Diff Detail

Event Timeline

njames93 requested review of this revision.Feb 22 2021, 6:39 AM
njames93 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2021, 6:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Feb 22 2021, 6:44 AM

LGTM, good catch!

This revision is now accepted and ready to land.Feb 22 2021, 6:44 AM
This revision was automatically updated to reflect the committed changes.