Call module_name_to_str instead of just unwrapping
This commit is contained in:
parent
f48c99a004
commit
6419aeb1ec
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Reference in a new issue