From 0661cf4e1f8f4dabd900d5672b9f6c16f000a9d0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 14 Jul 2009 07:55:11 +0000 Subject: Update for LLVM API changes. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75626 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/klee/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 7fff773c..58e7eecc 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -1040,10 +1040,10 @@ static llvm::Module *linkWithUclibc(llvm::Module *mainModule) { ft->getParamType(0))); args.push_back(stub->arg_begin()); // argc args.push_back(++stub->arg_begin()); // argv - args.push_back(Constant::getNullValue(ft->getParamType(3))); // app_init - args.push_back(Constant::getNullValue(ft->getParamType(4))); // app_fini - args.push_back(Constant::getNullValue(ft->getParamType(5))); // rtld_fini - args.push_back(Constant::getNullValue(ft->getParamType(6))); // stack_end + args.push_back(llvm::getGlobalContext().getNullValue(ft->getParamType(3))); // app_init + args.push_back(llvm::getGlobalContext().getNullValue(ft->getParamType(4))); // app_fini + args.push_back(llvm::getGlobalContext().getNullValue(ft->getParamType(5))); // rtld_fini + args.push_back(llvm::getGlobalContext().getNullValue(ft->getParamType(6))); // stack_end CallInst::Create(uclibcMainFn, args.begin(), args.end(), "", bb); new UnreachableInst(bb); -- cgit 1.4.1