[PATCH] Mangling of member-expressions involving anonymous unions.

Tomasz Miąsko tomasz.miasko at gmail.com
Wed Oct 29 14:26:08 PDT 2014


I have updated tests to include an anonymous union, an anonymous struct and
combinations of those two. In addition, dependency on non-diagnosed incomplete
type in member-expression has been removed.

End condition is now made more explicit using IndirectFieldDecl, but this
requires additional check ensuring that we are in fact dealing with an
anonymous union / struct (so that we don't break non-anonymous case). Did you
have something simpler in mind here?

http://reviews.llvm.org/D5997

Files:
  lib/AST/ItaniumMangle.cpp
  test/CodeGenCXX/mangle-exprs.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5997.15555.patch
Type: text/x-patch
Size: 2600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141029/1658919c/attachment.bin>


More information about the cfe-commits mailing list