1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2024-12-14 11:32:34 +00:00

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
This commit is contained in:
Chris Lattner 2005-01-28 16:08:23 +00:00
parent 6b9870abce
commit e6585ab601

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