================ @@ -11399,6 +11400,22 @@ static QualType mergeEnumWithInteger(ASTContext &Context, const EnumType *ET, return {}; } +QualType ASTContext::mergeTagTypes(QualType LHS, QualType RHS) { ---------------- erichkeane wrote:
What about `mergeTagDefinitions`? I don't have a good idea here otherwise, but it isn't really merging tag-types so much as just their definitions? Also perhaps even in NOT the C2(whatever) mode: what about returning the 'not definition' (assuming 1 is a definition and 1 isnt?). it makes it a no-op in that case, but perhaps one that is sensible. https://github.com/llvm/llvm-project/pull/132939 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits