diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2012-06-20 18:33:52 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2012-06-20 18:33:52 +0000 |
commit | 9b2fef168fd76208de25f1f3dc05629328b5d655 (patch) | |
tree | b7c3ca4001fe38e92b5a2a99beb7c0a0b7ba3f69 | |
parent | 992bb82423849797546804da1f73e970fc748928 (diff) | |
download | klee-9b2fef168fd76208de25f1f3dc05629328b5d655.tar.gz |
Fixed a minor issue related to an error path in --posix-runtime mode.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@158835 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/klee/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 2046be05..9b6dabb7 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -610,8 +610,7 @@ static int initEnv(Module *mainModule) { Function *mainFn = mainModule->getFunction("main"); if (mainFn->arg_size() < 2) { - std::cerr << "Cannot handle ""-init-env"" when main() has less than two arguments.\n"; - return -1; + klee_error("Cannot handle ""--posix-runtime"" when main() has less than two arguments.\n"); } Instruction* firstInst = mainFn->begin()->begin(); |