[cfe-dev] Implementation of MSRecordLayoutBuilder.

r4start r4start at gmail.com
Thu Sep 22 00:25:30 PDT 2011


On 22/09/2011 05:36, Eli Friedman wrote:
> On Tue, Sep 20, 2011 at 1:17 AM, r4start<r4start at gmail.com>  wrote:
>>> In general, do not leave around code commented out with /**/ in
>>> patches.  Also, please include any tests which should be committed in
>>> the diff itself (using svn add).
>> I`ve added test into test/AST, is that ok?
> We generally prefer test/Sema for this sort of change.
>
> @@ -2034,15 +2228,22 @@
>       if (I->isVirtual())
>         continue;
>
> -    const CXXRecordDecl *Base =
> +    BaseOffset = CharUnits::Zero();
> +
> +    Base =
>         cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
>
> -    CharUnits BaseOffset = Offset + Layout.getBaseClassOffset(Base);
> +    BaseOffset = Offset + Layout.getBaseClassOffset(Base);
>
> Redundant setting of BaseOffset?
Yes of course.
> Otherwise, looks fine; I'll commit for you once you send an updated patch.
>
> -Eli
- Dmitry.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: microsoft-layout-support.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110922/70f3acb5/attachment.ksh>


More information about the cfe-dev mailing list