diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-28 16:08:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-28 16:08:23 +0000 |
commit | e6585ab6017a6eb65f8fc054195100e89268cc11 (patch) | |
tree | a8401bc08ebade92ba9f2e7acbe8f876bad58b68 /include/llvm/System/MappedFile.h | |
parent | 6b9870abced52820afb2c51a7fab96afd6e12bba (diff) |
Do not clean up if the MappedFile was never used or if the client already
closed the file. This unbreaks the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/MappedFile.h')
-rw-r--r-- | include/llvm/System/MappedFile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/System/MappedFile.h b/include/llvm/System/MappedFile.h index f73618aeb4..83c63d2636 100644 --- a/include/llvm/System/MappedFile.h +++ b/include/llvm/System/MappedFile.h @@ -52,7 +52,7 @@ namespace sys { /// Destruct a MappedFile and release all memory associated with it. /// @throws std::string if an error occurs - ~MappedFile() { terminate(); } + ~MappedFile() { if (info_) terminate(); } /// @} /// @name Accessors |