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
PR13329.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
