[llvm-commits] CVS: llvm/include/llvm/System/MappedFile.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 28 08:08:40 PST 2005
Changes in directory llvm/include/llvm/System:
MappedFile.h updated: 1.5 -> 1.6
---
Log message:
Do not clean up if the MappedFile was never used or if the client already
closed the file. This unbreaks the build.
---
Diffs of the changes: (+1 -1)
MappedFile.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/System/MappedFile.h
diff -u llvm/include/llvm/System/MappedFile.h:1.5 llvm/include/llvm/System/MappedFile.h:1.6
--- llvm/include/llvm/System/MappedFile.h:1.5 Sun Dec 12 20:58:51 2004
+++ llvm/include/llvm/System/MappedFile.h Fri Jan 28 10:08:23 2005
@@ -52,7 +52,7 @@
/// 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
More information about the llvm-commits
mailing list