diff options
Diffstat (limited to 'llvm/lib/System/Unix/MappedFile.inc')
-rw-r--r-- | llvm/lib/System/Unix/MappedFile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/MappedFile.inc b/llvm/lib/System/Unix/MappedFile.inc index 5e76e2bc26a..91b92ece5a5 100644 --- a/llvm/lib/System/Unix/MappedFile.inc +++ b/llvm/lib/System/Unix/MappedFile.inc @@ -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. } } |