OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80626a7
)
For PR777:
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 15 May 2006 22:12:42 +0000
(22:12 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 15 May 2006 22:12:42 +0000
(22:12 +0000)
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
lib/Support/FileUtilities.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/FileUtilities.cpp
b/lib/Support/FileUtilities.cpp
index
ae851c7
..
a7f42dd
100644
(file)
--- 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;
}
}