ThinLTO: Don't keep files open after mmaping them (because it's not needed).
This commit is contained in:
parent
3f13b27c2b
commit
fc47a92336
2 changed files with 4 additions and 4 deletions
|
@ -2485,7 +2485,7 @@ pub(crate) fn submit_pre_lto_module_to_llvm(tcx: TyCtxt,
|
|||
|
||||
// Schedule the module to be loaded
|
||||
drop(tcx.tx_to_llvm_workers.lock().send(Box::new(Message::AddImportOnlyModule {
|
||||
module_data: SerializedModule::FromUncompressedFile(mmap, file),
|
||||
module_data: SerializedModule::FromUncompressedFile(mmap),
|
||||
work_product: module.source,
|
||||
})));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue