projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b5295b
)
LoadLibraryPermanently doesn't throw.
author
Chris Lattner
<sabre@nondot.org>
Sun, 21 Oct 2007 22:58:11 +0000
(22:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 21 Oct 2007 22:58:11 +0000
(22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43207
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index 192caa894caa210b605845ce25ab1c6de7f110ad..2129dd5019d92d5d7d7206a4bab9eede07fe7d57 100644
(file)
--- 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;
}
}