mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
LoadLibraryPermanently doesn't throw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b5295b7bb
commit
c6185038b8
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user