[cfe-commits] [Patch][Review] Bug 13329 - Incorrect code generated for automatic assignment operator

Jonathan Sauer jonathan.sauer at gmx.de
Sun Jul 22 11:33:15 PDT 2012


Hello,

turns out the fix is even simpler: As the whole "POD for the purpose of layout"-business is
already taken care of by the layout builder (albeit without considering bitfields ATM), there
is no need to duplicate the logic in the new getTypeInfo-method: It simply fetches the record
layout and returns its data size.

I am wondering if the size of a record as returned by getTypeInfo could always be the data
size, but I'm not knowledgable enough to assess this.

Attached is a new patch against the current TOT. Please review and commit it, if ok.


Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR13329.patch
Type: application/octet-stream
Size: 8256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120722/42061ded/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list