diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-07-10 20:20:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-10 20:20:39 -0400 |
| commit | 6e3d017b2ff771438011feb5c21e0892ec2a22fb (patch) | |
| tree | ea3d7a3d53900694f94feb5f606775c6709128de /compiler/rustc_codegen_llvm/src/consts.rs | |
| parent | d1a57676efa2fe8d901ff03b4ff726f728fdff23 (diff) | |
| parent | 84eeca2e2fc40bb8d6641846f18af9d8fc6a9681 (diff) | |
| download | rust-6e3d017b2ff771438011feb5c21e0892ec2a22fb.tar.gz rust-6e3d017b2ff771438011feb5c21e0892ec2a22fb.zip | |
Rollup merge of #143722 - oli-obk:sound-llvm, r=dianqk
Make some "safe" llvm ops actually sound Noticed while doing other refactorings it may cause some extra unnecessary allocations, but the current use sites are rare ones anyway
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/consts.rs')
| -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 21524fd2eb8..5deddb3ed98 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -429,7 +429,7 @@ impl<'ll> CodegenCx<'ll, '_> { // specific rules on what can be cast. So instead of adding a new way to // generate static initializers that match the static's type, we picked // the easier option and retroactively change the type of the static item itself. - let name = llvm::get_value_name(g).to_vec(); + let name = llvm::get_value_name(g); llvm::set_value_name(g, b""); let linkage = llvm::get_linkage(g); |
