diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-17 12:39:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-17 12:39:06 +0100 |
| commit | e53bd4c2828d475528a387fdba0a80e65a81a05a (patch) | |
| tree | 2b121f869107219656cc884c3e8b8be41ef98627 /compiler/rustc_codegen_llvm/src | |
| parent | 99567662abd0bff3f55ca3c383f430899953d4c5 (diff) | |
| parent | f9972313aec9cf4c3bedb765496c8ee07e4cb7ed (diff) | |
| download | rust-e53bd4c2828d475528a387fdba0a80e65a81a05a.tar.gz rust-e53bd4c2828d475528a387fdba0a80e65a81a05a.zip | |
Rollup merge of #108126 - tshepang:nits, r=lcnr
fix a line, and do a consistency fix
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/consts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs index 92629aa18d4..9116e71beac 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -521,7 +521,7 @@ impl<'ll> StaticMethods for CodegenCx<'ll, '_> { // The semantics of #[used] in Rust only require the symbol to make it into the // object file. It is explicitly allowed for the linker to strip the symbol if it - // is dead, which means we are allowed use `llvm.compiler.used` instead of + // is dead, which means we are allowed to use `llvm.compiler.used` instead of // `llvm.used` here. // // Additionally, https://reviews.llvm.org/D97448 in LLVM 13 started emitting unique @@ -532,7 +532,7 @@ impl<'ll> StaticMethods for CodegenCx<'ll, '_> { // That said, we only ever emit these when compiling for ELF targets, unless // `#[used(compiler)]` is explicitly requested. This is to avoid similar breakage // on other targets, in particular MachO targets have *their* static constructor - // lists broken if `llvm.compiler.used` is emitted rather than llvm.used. However, + // lists broken if `llvm.compiler.used` is emitted rather than `llvm.used`. However, // that check happens when assigning the `CodegenFnAttrFlags` in `rustc_hir_analysis`, // so we don't need to take care of it here. self.add_compiler_used_global(g); |
