aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileUtilities.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-28 22:29:50 +0000
committerChris Lattner <sabre@nondot.org>2006-07-28 22:29:50 +0000
commit0c33231eff17edbdabdb186e1fae718cf94b58b2 (patch)
treeb7b5e08357f3a04f92267bbbc0ee9d8915a82900 /include/llvm/Support/FileUtilities.h
parent65a392ebeae214ccb25f4d5ec856688e4e690e0d (diff)
Modify Path::eraseFromDisk to not throw an exception.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r--include/llvm/Support/FileUtilities.h8
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