mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
LoadLibraryPermanently can theoretically throw an exception. Do not propagate
it out of 'ExecutionEngine::create'. This fixes a problem reported by coverity. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -247,7 +247,10 @@ 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.
|
||||||
sys::DynamicLibrary::LoadLibraryPermanently(0);
|
try {
|
||||||
|
sys::DynamicLibrary::LoadLibraryPermanently(0);
|
||||||
|
} catch (...) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EE;
|
return EE;
|
||||||
|
Reference in New Issue
Block a user