================ @@ -4652,6 +4659,7 @@ llvm::Constant *CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) { "", Resolver, &getModule()); GIF->setName(ResolverName); SetCommonAttributes(FD, GIF); + SetResolverAttrs(cast<llvm::Function>(Resolver)); ---------------- efriedma-quic wrote:
Is Resolver actually guaranteed to be a function? GetOrCreateLLVMFunction can return other kinds of GlobalValues in some cases. Should we be calling SetCommonAttributes/setGVProperties to set the linkage/visibility of the resolver? https://github.com/llvm/llvm-project/pull/141573 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits