[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 4 14:25:34 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list