[PATCH] Fixing Alias-Avoidance Padding for MS-ABI Layout

Warren Hunt whunt at google.com
Wed Nov 27 15:27:26 PST 2013

  Note to self:
    if (const RecordType *RT =
        FD->getType()->getBaseElementTypeUnsafe()->getAs<RecordType>()) {
      const ASTRecordLayout &Layout = Context.getASTRecordLayout(RT->getDecl());
      if (Layout.hasZeroSizedMemberOrBase())
        HasZeroSizedMemberOrBase = true;

  should move inside getAdjustedFieldInfo, in order to merge better with the RequiredAlignment patch.


More information about the cfe-commits mailing list