summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-14 19:01:55 +0000
committerChris Lattner <sabre@nondot.org>2006-05-14 19:01:55 +0000
commit6f3ada51aa7a3816609967231befd58de4053e4c (patch)
treefc1dfa68baeefa614117a6eebc73a7b341d7f13a /lib/ExecutionEngine
parentf883eb94e00d861927bcaed96fc1f2a63bbc865c (diff)
downloadllvm-6f3ada51aa7a3816609967231befd58de4053e4c.tar.gz
llvm-6f3ada51aa7a3816609967231befd58de4053e4c.tar.bz2
llvm-6f3ada51aa7a3816609967231befd58de4053e4c.tar.xz
LoadLibraryPermanently can theoretically throw an exception. Do not propagate
it out of 'ExecutionEngine::create'. This fixes a problem reported by coverity. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index a1ce4fca18..4ea6230711 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -247,7 +247,10 @@ ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
if (EE) {
// Make sure we can resolve symbols in the program as well. The zero arg
// to the function tells DynamicLibrary to load the program, not a library.
- sys::DynamicLibrary::LoadLibraryPermanently(0);
+ try {
+ sys::DynamicLibrary::LoadLibraryPermanently(0);
+ } catch (...) {
+ }
}
return EE;