commit | 971e03d74a0f02c17f572619ca11f137011b6c9e | [log] [tgz] |
---|---|---|
author | Jeff Cohen <jeffc@jolt-lang.org> | Fri Jan 28 01:17:07 2005 +0000 |
committer | Jeff Cohen <jeffc@jolt-lang.org> | Fri Jan 28 01:17:07 2005 +0000 |
tree | 506cc1d8008a3ee28b576daf5a46475f83e9162e | |
parent | df7783516658cef26269c6e936ec59f97984e4a8 [diff] [blame] |
Properly close mapped files. llvm-svn: 19863
diff --git a/llvm/lib/Bytecode/Archive/Archive.cpp b/llvm/lib/Bytecode/Archive/Archive.cpp index 2d79bd6..aa2db41 100644 --- a/llvm/lib/Bytecode/Archive/Archive.cpp +++ b/llvm/lib/Bytecode/Archive/Archive.cpp
@@ -143,7 +143,7 @@ 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