================
@@ -2360,12 +2363,19 @@ static QualType GeneralizeType(ASTContext &Ctx,
QualType Ty,
bool GeneralizePointers) {
Ty = GeneralizeTransparentUnion(Ty);
- if (!GeneralizePointers || !Ty->isPointerType())
+ if (!Ty->isPointerType())
+ return Ty;
+
+ QualType PTy = Ty->getPointeeType();
+ if (PTy->getAs<FunctionProtoType>() || PTy->getAs<FunctionNoProtoType>())
----------------
vitalybuka wrote:
Mangler is too late, if we have pointer generalization, it should apply to
pointers form transparent union
https://github.com/llvm/llvm-project/pull/158194
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits