LoadLibraryPermanently doesn't throw.

llvm-svn: 43207
This commit is contained in:
Chris Lattner 2007-10-21 22:58:11 +00:00
parent b5163bb9f0
commit edaf0b4651
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}