Call module_name_to_str instead of just unwrapping

This commit is contained in:
Ben Kimock 2024-09-21 18:42:51 -04:00
parent f48c99a004
commit 6419aeb1ec

View File

@ -844,7 +844,7 @@ fn from_thin_lto_modules(
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0); llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
}) })
.expect("Invalid ThinLTO module key"); .expect("Invalid ThinLTO module key");
(name.clone().into_string().unwrap(), key) (module_name_to_str(name).to_string(), key)
}) })
.collect(); .collect();
Self { keys } Self { keys }