diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2022-03-24 08:42:14 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <chiovolonit@gmail.com> | 2022-05-11 01:29:56 -0700 |
| commit | da72295411491b2b64270f5b050955859e743fcd (patch) | |
| tree | d427cad7e3358d210bcf3c2e485a4b43d4f777ed /compiler/rustc_codegen_llvm/src | |
| parent | 16c2b39e1c5029913daf7b780c2cbea7477e077c (diff) | |
| download | rust-da72295411491b2b64270f5b050955859e743fcd.tar.gz rust-da72295411491b2b64270f5b050955859e743fcd.zip | |
Fix mixup between `llvm.compiler.used` and `llvm.used` in comment
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs index 98b412f9397..a1ab590335a 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -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))`, |
