mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
Fix mixup between llvm.compiler.used
and llvm.used
in comment
This commit is contained in:
parent
16c2b39e1c
commit
da72295411
@ -545,7 +545,7 @@ impl<'ll> StaticMethods for CodegenCx<'ll, '_> {
|
||||
//
|
||||
// However, unconditional use of `llvm.compiler.used` caused a nontrivial amount of
|
||||
// ecosystem breakage, especially on Mach-O targets. To resolve this, we compile it
|
||||
// as llvm.used on ELF targets and llvm.compiler.used elsewhere, which and should be
|
||||
// as llvm.compiler.used on ELF targets and llvm.used elsewhere, which should be
|
||||
// equivalent to how we compiled `#[used]` before LLVM 13, as `llvm.used` and
|
||||
// `llvm.compiler.used` were treated the same on ELF targets prior in earlier LLVM
|
||||
// versions (additionally, it seems to be how Clang handles `__attribute__((used))`,
|
||||
|
Loading…
Reference in New Issue
Block a user