diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-05-14 19:01:55 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-05-14 19:01:55 +0000 | 
| commit | 63539389cac47fdea721d24b5cd33aedf9907f68 (patch) | |
| tree | a25c735525077fc81cd3789abfa04613385e1aa6 /llvm/lib/ExecutionEngine | |
| parent | 78b8e977b2cf39140eb37e5f1f13d511b890b86c (diff) | |
| download | bcm5719-llvm-63539389cac47fdea721d24b5cd33aedf9907f68.tar.gz bcm5719-llvm-63539389cac47fdea721d24b5cd33aedf9907f68.zip | |
LoadLibraryPermanently can theoretically throw an exception.  Do not propagate
it out of 'ExecutionEngine::create'.  This fixes a problem reported by coverity.
llvm-svn: 28293
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index a1ce4fca184..4ea62307113 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -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; | 

