rsmith added a comment.

We don't want to allocate storage for the lambda fields for non-lambda classes, 
which is why we use distinct base classes. Is the problem you're trying to 
solve here that we fake a definition in AST deserialization before we know 
whether the class is a lambda? If so, that seems solvable by moving the 
IsLambda flag out of DefinitionData into CXXRecordData (perhaps as a distinct 
TagTypeKind?).


Repository:
  rC Clang

https://reviews.llvm.org/D50948



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D50948: l... Steve O'Brien via Phabricator via cfe-commits
    • [PATCH] D509... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D509... Steve O'Brien via Phabricator via cfe-commits
    • [PATCH] D509... Steve O'Brien via Phabricator via cfe-commits
    • [PATCH] D509... Steve O'Brien via Phabricator via cfe-commits

Reply via email to