Skip to content

Commit da72295

Browse files
committed
Fix mixup between llvm.compiler.used and llvm.used in comment
1 parent 16c2b39 commit da72295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ impl<'ll> StaticMethods for CodegenCx<'ll, '_> {
545545
//
546546
// However, unconditional use of `llvm.compiler.used` caused a nontrivial amount of
547547
// ecosystem breakage, especially on Mach-O targets. To resolve this, we compile it
548-
// as llvm.used on ELF targets and llvm.compiler.used elsewhere, which and should be
548+
// as llvm.compiler.used on ELF targets and llvm.used elsewhere, which should be
549549
// equivalent to how we compiled `#[used]` before LLVM 13, as `llvm.used` and
550550
// `llvm.compiler.used` were treated the same on ELF targets prior in earlier LLVM
551551
// versions (additionally, it seems to be how Clang handles `__attribute__((used))`,

0 commit comments

Comments
 (0)