Skip to content

Commit

Permalink
Call module_name_to_str instead of just unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Sep 21, 2024
1 parent f48c99a commit 6419aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_llvm/src/back/lto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 6419aeb

Please sign in to comment.