summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/lli/lli.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index a01b0d6934..40b858e9d1 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -147,8 +147,11 @@ int main(int argc, char **argv, char * const *envp) {
InitializeNativeTarget();
EE = ExecutionEngine::create(MP, ForceInterpreter, &ErrorMsg, OLvl);
- if (!EE && !ErrorMsg.empty()) {
- std::cerr << argv[0] << ":error creating EE: " << ErrorMsg << "\n";
+ if (!EE) {
+ if (!ErrorMsg.empty())
+ std::cerr << argv[0] << ": error creating EE: " << ErrorMsg << "\n";
+ else
+ std::cerr << argv[0] << ": unknown error creating EE!\n";
exit(1);
}