================ @@ -11145,7 +11148,24 @@ bool Sema::areMultiversionVariantFunctionsCompatible( FunctionType::ExtInfo OldTypeInfo = OldType->getExtInfo(); FunctionType::ExtInfo NewTypeInfo = NewType->getExtInfo(); - if (OldTypeInfo.getCC() != NewTypeInfo.getCC()) + const auto *OldFPT = OldFD->getType()->getAs<FunctionProtoType>(); + const auto *NewFPT = NewFD->getType()->getAs<FunctionProtoType>(); + + bool ArmStreamingCCMismatched = false; + // Locally streaming does not affect the calling convention. + if (OldFPT && NewFPT && !OldFD->hasAttr<ArmLocallyStreamingAttr>() && + !NewFD->hasAttr<ArmLocallyStreamingAttr>()) { ---------------- labrinea wrote:
Thanks for clarifying! Ok, I'll fix the interaction with locally_streaming in a new revision. Your last example cannot be supported for the reason I explain on the commit message. https://github.com/llvm/llvm-project/pull/100181 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits