diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-28 01:17:07 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-28 01:17:07 +0000 |
commit | 971e03d74a0f02c17f572619ca11f137011b6c9e (patch) | |
tree | 506cc1d8008a3ee28b576daf5a46475f83e9162e /llvm/lib/Bytecode/Archive/Archive.cpp | |
parent | df7783516658cef26269c6e936ec59f97984e4a8 (diff) | |
download | bcm5719-llvm-971e03d74a0f02c17f572619ca11f137011b6c9e.tar.gz bcm5719-llvm-971e03d74a0f02c17f572619ca11f137011b6c9e.zip |
Properly close mapped files.
llvm-svn: 19863
Diffstat (limited to 'llvm/lib/Bytecode/Archive/Archive.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Archive/Archive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Archive/Archive.cpp b/llvm/lib/Bytecode/Archive/Archive.cpp index 2d79bd66ed3..aa2db413852 100644 --- a/llvm/lib/Bytecode/Archive/Archive.cpp +++ b/llvm/lib/Bytecode/Archive/Archive.cpp @@ -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 |