mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
LoadLibraryPermanently can theoretically throw an exception. Do not propagate
it out of 'ExecutionEngine::create'. This fixes a problem reported by coverity. llvm-svn: 28293
This commit is contained in:
parent
d639e0fbce
commit
05311325f1
@ -247,7 +247,10 @@ 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.
|
||||
sys::DynamicLibrary::LoadLibraryPermanently(0);
|
||||
try {
|
||||
sys::DynamicLibrary::LoadLibraryPermanently(0);
|
||||
} catch (...) {
|
||||
}
|
||||
}
|
||||
|
||||
return EE;
|
||||
|
Loading…
Reference in New Issue
Block a user