mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +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:
parent
2f28ffc5fd
commit
044aaca356
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user