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
cc8f571bc8
commit
fd96905f12
|
@ -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