From 592f0bcd15cda958270ae7224b5bbf3e2f4201a5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 15 Jul 2009 20:37:05 +0000 Subject: [llvm up] Update for LLVM TOT changes. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75826 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/klee/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') 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 params; -- cgit 1.4.1