From e6585ab6017a6eb65f8fc054195100e89268cc11 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Jan 2005 16:08:23 +0000 Subject: [PATCH] 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 --- include/llvm/System/MappedFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/System/MappedFile.h b/include/llvm/System/MappedFile.h index f73618aeb40..83c63d26364 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