summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
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
commitedaf0b4651d49a6857d160d7ca940cef1bcb8187 (patch)
tree55a27e1658c9360ca23d6460f8aeda28d98988df /llvm/lib/ExecutionEngine
parentb5163bb9f0f53d73e969440ae6664c61b0820c97 (diff)
downloadbcm5719-llvm-edaf0b4651d49a6857d160d7ca940cef1bcb8187.tar.gz
bcm5719-llvm-edaf0b4651d49a6857d160d7ca940cef1bcb8187.zip
LoadLibraryPermanently doesn't throw.
llvm-svn: 43207
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 192caa894ca..2129dd5019d 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/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;
}
}
OpenPOWER on IntegriCloud