mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00: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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54f4a6780a
commit
39253260b9
@ -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…
x
Reference in New Issue
Block a user