[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)
Alexandros Lamprineas via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 18 04:03:14 PDT 2025
https://github.com/labrinea requested changes to this pull request.
We need this instead as I explained on the other thread.
```
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 2d37e0f13199..e26a540a8cb4 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -4586,6 +4586,8 @@ void CodeGenModule::emitMultiVersionFunctions() {
});
CodeGenFunction CGF(*this);
CGF.EmitMultiVersionResolver(ResolverFunc, Options);
+ SetFunctionAttributes(GD, ResolverFunc, /*IsIncompleteFunction=*/false,
+ /*IsThunk=*/false);
}
// Ensure that any additions to the deferred decls list caused by emitting a
```
https://github.com/llvm/llvm-project/pull/141573
More information about the cfe-commits
mailing list