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

Jonathan Sauer jonathan.sauer at gmx.de
Mon Jul 16 06:12:58 PDT 2012


Hello,

attached is a patch (without tests) to fix <http://llvm.org/bugs/show_bug.cgi?id=13329>.
With this patch, the llvm.memcpy instruction generated by clang only copy the whole struct
if it is a POD. Otherwise they do no longer copy the tail padding as well, as it can and
will be reused for the fields of derived classes.

If the general approach to fixing this bug is ok I will add the necessary tests.


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




More information about the cfe-commits mailing list