Skip to content

Commit 2077515

Browse files
committed
TODO: Add to ATTRIBUTES
1 parent 7cc0fed commit 2077515

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/rustc_codegen_llvm/src

compiler/rustc_codegen_llvm/src/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ pub(crate) fn compile_codegen_unit(
125125
maybe_create_entry_wrapper::<Builder<'_, '_, '_>>(&cx, cx.codegen_unit)
126126
{
127127
let mut attrs = attributes::sanitize_attrs(&cx, tcx, SanitizerFnAttrs::default());
128-
// For pauthtest make sure that the ptrauth-* attributes are also attached to the
129-
// entry wrapper.
128+
// When pointer authentication is enabled, ensure that the ptrauth-* attributes are
129+
// also attached to the entry wrapper.
130130
if cx.sess().target.env == Env::Pauthtest {
131131
for &ptrauth_attr in pauth_fn_attrs() {
132132
attrs.push(llvm::CreateAttrString(cx.llcx, ptrauth_attr));

0 commit comments

Comments
 (0)