diff options
author | Tanya Lattner <tonic@nondot.org> | 2007-05-15 05:15:10 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2007-05-15 05:15:10 +0000 |
commit | f9116a1aaa2b7b7d96409e4860b692fc2e75b706 (patch) | |
tree | 4826210bf73d713e3ba20b01401fa709885d3c0e | |
parent | 41aded4c11f1fa684c604cf5e829268f52cfb836 (diff) |
Merge from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_20@37078 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Unix/MappedFile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/System/Unix/MappedFile.inc b/lib/System/Unix/MappedFile.inc index 5e76e2bc26..91b92ece5a 100644 --- a/lib/System/Unix/MappedFile.inc +++ b/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. } } |