diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 20:37:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 20:37:05 +0000 |
commit | 592f0bcd15cda958270ae7224b5bbf3e2f4201a5 (patch) | |
tree | 2861f471fd305d06dcf26ddde9ff1592761d1843 /tools | |
parent | d786ba65b69c57fec0804d4a529682844ac2d411 (diff) | |
download | klee-592f0bcd15cda958270ae7224b5bbf3e2f4201a5.tar.gz |
[llvm up] Update for LLVM TOT changes.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/klee/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 58e7eecc..af8b829d 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -603,8 +603,10 @@ static int initEnv(Module *mainModule) { Value* oldArgc = mainFn->arg_begin(); Value* oldArgv = ++mainFn->arg_begin(); - AllocaInst* argcPtr = new AllocaInst(oldArgc->getType(), "argcPtr", firstInst); - AllocaInst* argvPtr = new AllocaInst(oldArgv->getType(), "argvPtr", firstInst); + AllocaInst* argcPtr = new AllocaInst(getGlobalContext(), oldArgc->getType(), + "argcPtr", firstInst); + AllocaInst* argvPtr = new AllocaInst(getGlobalContext(), oldArgv->getType(), + "argvPtr", firstInst); /* Insert void klee_init_env(int* argc, char*** argv) */ std::vector<const Type*> params; |