[clang] Mark CXX module initializer with PACBTI attributes (PR #133716)
Victor Campos via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 8 06:09:48 PDT 2025
================
@@ -447,6 +447,8 @@ llvm::Function *CodeGenModule::CreateGlobalInitOrCleanUpFunction(
if (Linkage == llvm::GlobalVariable::InternalLinkage)
SetInternalFunctionAttributes(GlobalDecl(), Fn, FI);
+ else
+ getTargetCodeGenInfo().setTargetAttributes(nullptr, Fn, *this);
----------------
vhscampos wrote:
Done
https://github.com/llvm/llvm-project/pull/133716
More information about the cfe-commits
mailing list