[PATCH] D10990: Fix for clang memcpyizer bugs 23911 and 23924

Denis Zobnin d.zobnin.bugzilla at gmail.com
Mon Jul 13 02:57:02 PDT 2015


d.zobnin.bugzilla removed rL LLVM as the repository for this revision.
d.zobnin.bugzilla updated this revision to Diff 29540.
d.zobnin.bugzilla added a comment.

A function to emit lvalue for any field initialization was added (it also drills down to the field of anonymous unions). The code was adapted to work with this new function.
In previous review there was a request to add a method to CXXCtorInitializer to get the type of the initialized member. I realized that this can be done simply by getAnyMember()->getType() and decided not to add this method, because the new code looks pretty straightforward, I think.


http://reviews.llvm.org/D10990

Files:
  lib/CodeGen/CGClass.cpp
  test/CodeGen/eh-aggregated-inits-unwind.cpp
  test/CodeGen/eh-aggregated-inits.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10990.29540.patch
Type: text/x-patch
Size: 5738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150713/e1fcb088/attachment.bin>


More information about the cfe-commits mailing list