diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-10 22:40:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 22:40:36 +0100 |
| commit | 40988591ecd806fbbfe61db8b5cd05cff33e22d6 (patch) | |
| tree | 5c5e486f63cb5c203d88fb5274b1639abf7a986f /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | 6cfe9af6a074b842198176d21170e49ee0cc6add (diff) | |
| parent | 15de4cbc4b49be2fbf082fe02f877d5f774569a5 (diff) | |
| download | rust-40988591ecd806fbbfe61db8b5cd05cff33e22d6.tar.gz rust-40988591ecd806fbbfe61db8b5cd05cff33e22d6.zip | |
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
Remove redundant [..]s
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index 73a8d464431..d0ed9781243 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -120,7 +120,7 @@ impl CodegenCx<'ll, 'tcx> { !null_terminated as Bool, ); let sym = self.generate_local_symbol_name("str"); - let g = self.define_global(&sym[..], self.val_ty(sc)).unwrap_or_else(|| { + let g = self.define_global(&sym, self.val_ty(sc)).unwrap_or_else(|| { bug!("symbol `{}` is already defined", sym); }); llvm::LLVMSetInitializer(g, sc); |
