================ @@ -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>()) ---------------- pcc wrote:
The hook could also do the pointer generalization, no? https://github.com/llvm/llvm-project/pull/158194 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits