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

Tomasz Miąsko tomasz.miasko at gmail.com
Thu Nov 13 10:36:55 PST 2014


Indeed, something like "if (!member) return mangleExpression(base)", would be
really nice, but the problem is that we need a member name from outermost
MemberExpr generated from IndirectFieldDecl, and isArrow from innermost
MemberExpr generated from IndirectFieldDecl.

I updated the code to skip over all bases whose types are anonymous structs or
unions, though I will mention that first version that relied on empty
identifiers would also work.

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.16165.patch
Type: text/x-patch
Size: 2963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141113/02b7e004/attachment.bin>


More information about the cfe-commits mailing list