about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-09-21 18:42:51 -0400
committerBen Kimock <kimockb@gmail.com>2024-09-21 18:42:51 -0400
commit6419aeb1ec71fab8a6d47a0f14a8391cecab5f39 (patch)
treebcd3a37a3a68dfd580923cfdd5e092e9e7989119 /compiler/rustc_codegen_llvm/src
parentf48c99a0041bb82a750b34cf2570e0e73d6d801c (diff)
downloadrust-6419aeb1ec71fab8a6d47a0f14a8391cecab5f39.tar.gz
rust-6419aeb1ec71fab8a6d47a0f14a8391cecab5f39.zip
Call module_name_to_str instead of just unwrapping
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index 66479ad7f34..90a3da307d5 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -844,7 +844,7 @@ impl ThinLTOKeysMap {
                     llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
                 })
                 .expect("Invalid ThinLTO module key");
-                (name.clone().into_string().unwrap(), key)
+                (module_name_to_str(name).to_string(), key)
             })
             .collect();
         Self { keys }