From 6967cd54f3d44a8bf4a2dd9a066da07e0da7abea Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 7 Jul 2004 21:01:38 +0000 Subject: Fix for bug 391. Improve exeception handling around bcreader invocations. llvm-svn: 14674 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp') diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index c9fd5776546..4ece8b9c84b 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -137,6 +137,8 @@ ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP, } catch (...) { std::cerr << "Error creating the interpreter!\n"; } + } catch (std::string& errmsg) { + std::cerr << "Error reading the bytecode file: " << errmsg << "\n"; } catch (...) { std::cerr << "Error reading the bytecode file!\n"; } -- cgit v1.2.3