parent
b5163bb9f0
commit
edaf0b4651
|
@ -319,9 +319,9 @@ ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
|
||||||
if (EE) {
|
if (EE) {
|
||||||
// Make sure we can resolve symbols in the program as well. The zero arg
|
// 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.
|
// to the function tells DynamicLibrary to load the program, not a library.
|
||||||
try {
|
if (sys::DynamicLibrary::LoadLibraryPermanently(0, ErrorStr)) {
|
||||||
sys::DynamicLibrary::LoadLibraryPermanently(0);
|
delete EE;
|
||||||
} catch (...) {
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue