mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +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:
@ -52,7 +52,7 @@ namespace sys {
|
|||||||
|
|
||||||
/// Destruct a MappedFile and release all memory associated with it.
|
/// Destruct a MappedFile and release all memory associated with it.
|
||||||
/// @throws std::string if an error occurs
|
/// @throws std::string if an error occurs
|
||||||
~MappedFile() { terminate(); }
|
~MappedFile() { if (info_) terminate(); }
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Accessors
|
/// @name Accessors
|
||||||
|
Reference in New Issue
Block a user