diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-15 22:12:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-15 22:12:42 +0000 |
commit | c64f1488ed214ce71dc5c56ca838fea9de2304b7 (patch) | |
tree | 159f3df5b8490d725939d6dff7ca981cc8494c04 /lib/Support/FileUtilities.cpp | |
parent | 80626a7f6f3eb8bd1cc648a540a651dbcd24d504 (diff) |
For PR777:
Add an additional catch block to ensure that this function can't throw any
exceptions, even one's we're not expecting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/FileUtilities.cpp')
-rw-r--r-- | lib/Support/FileUtilities.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index ae851c7f54..a7f42ddebf 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -241,5 +241,8 @@ int llvm::DiffFilesWithTolerance(const sys::Path &FileA, } catch (const std::string &Msg) { if (Error) *Error = Msg; return 2; + } catch (...) { + *Error = "Unknown Exception Occurred"; + return 2; } } |