[llvm] [HWASan] personality-thunk should inherit BTI/GCS/PAC flags via createWithDefaultAttr (PR #139216)
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri May 9 11:29:16 PDT 2025
pcc wrote:
`createWithDefaultAttr` should only be used in special cases where no function context is available and then only before LTO because there are no default attributes during LTO. If we did want to add attributes I think they should be copied from the original function (i.e. the function with the personality attribute). This may involve reworking the code to allow the target-cpu/target-features to be treated as keys in the PersonalityFns map so we decided to go with the quick fix for now.
https://github.com/llvm/llvm-project/pull/139216
More information about the llvm-commits
mailing list