aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-21 22:58:11 +0000
committerChris Lattner <sabre@nondot.org>2007-10-21 22:58:11 +0000
commitc6185038b88588929a8d69309abe8bebadad345d (patch)
tree8b5f8029cba0c7f50c61d0f3a860233db9ae3542 /lib
parent8b5295b7bb8bf44f13df7fc8e38069d1218b1f94 (diff)
downloadexternal_llvm-c6185038b88588929a8d69309abe8bebadad345d.zip
external_llvm-c6185038b88588929a8d69309abe8bebadad345d.tar.gz
external_llvm-c6185038b88588929a8d69309abe8bebadad345d.tar.bz2
LoadLibraryPermanently doesn't throw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index 192caa8..2129dd5 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -319,9 +319,9 @@ 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.
- try {
- sys::DynamicLibrary::LoadLibraryPermanently(0);
- } catch (...) {
+ if (sys::DynamicLibrary::LoadLibraryPermanently(0, ErrorStr)) {
+ delete EE;
+ return 0;
}
}