Do not clean up if the MappedFile was never used or if the client already

closed the file.  This unbreaks the build.

llvm-svn: 19871
This commit is contained in:
Chris Lattner 2005-01-28 16:08:23 +00:00
parent 9db35b0763
commit a7ce993d7f

View File

@ -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