diff options
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 67eb3bb30f..d0d193deb9 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -43,10 +43,10 @@ namespace llvm { : Filename(filename), DeleteIt(deleteIt) {} ~FileRemover() { - if (DeleteIt) - try { - Filename.eraseFromDisk(); - } catch (...) {} // Ignore problems deleting the file. + if (DeleteIt) { + // Ignore problems deleting the file. + Filename.eraseFromDisk(); + } } /// releaseFile - Take ownership of the file away from the FileRemover so it |