ThinLTO: Don't keep files open after mmaping them (because it's not needed).

This commit is contained in:
Michael Woerister 2018-09-05 13:52:58 +02:00
parent 3f13b27c2b
commit fc47a92336
2 changed files with 4 additions and 4 deletions

View file

@ -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,
})));
}