1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix a bug where the bcreader could crash on .bc files that were an exact

multiple of the page size, due to a bug in MappedFile

llvm-svn: 36980
This commit is contained in:
Chris Lattner 2007-05-11 00:00:27 +00:00
parent 2f28ffc5fd
commit 044aaca356

View File

@ -78,6 +78,7 @@ void MappedFile::unmap() {
if (options_ & WRITE_ACCESS)
::msync(base_, info_->Size, MS_SYNC);
::munmap(base_, info_->Size);
base_ = 0; // Mark this as non-mapped.
}
}