================ @@ -447,6 +447,8 @@ llvm::Function *CodeGenModule::CreateGlobalInitOrCleanUpFunction( if (Linkage == llvm::GlobalVariable::InternalLinkage) SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); + else + getTargetCodeGenInfo().setTargetAttributes(nullptr, Fn, *this); ---------------- efriedma-quic wrote:
Do we also need to call SetLLVMFunctionAttributes/SetLLVMFunctionAttributesForDefinition here? https://github.com/llvm/llvm-project/pull/133716 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits