about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-14 07:55:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-14 07:55:11 +0000
commit0661cf4e1f8f4dabd900d5672b9f6c16f000a9d0 (patch)
tree799cec0615b865363e38535aa41371610fc6c3f0
parent40d4cc09c873518519723244b38cc740ceda2bc8 (diff)
downloadklee-0661cf4e1f8f4dabd900d5672b9f6c16f000a9d0.tar.gz
Update for LLVM API changes.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75626 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/klee/main.cpp8
1 files 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);