mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Properly close mapped files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -143,7 +143,7 @@ Archive::Archive(const sys::Path& filename, bool map )
|
||||
Archive::~Archive() {
|
||||
// Shutdown the file mapping
|
||||
if (mapfile) {
|
||||
mapfile->unmap();
|
||||
mapfile->close();
|
||||
delete mapfile;
|
||||
}
|
||||
// Delete any ModuleProviders and ArchiveMember's we've allocated as a result
|
||||
|
Reference in New Issue
Block a user