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:
parent
6b9870abce
commit
e6585ab601
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user