about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-01 04:04:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-01 04:04:39 +0000
commite4401b37dba9045c8aa7dc01535fcb4cd92a399e (patch)
tree9663094e6cbeda5d9d5ed387dd9a6880c70e6365 /tools
parentaef0393cb74bbfb2b44ebae46eaa3229519209b7 (diff)
downloadklee-e4401b37dba9045c8aa7dc01535fcb4cd92a399e.tar.gz
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-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 de20f6d3..a92aca8c 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -1050,10 +1050,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(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
+  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
   CallInst::Create(uclibcMainFn, args.begin(), args.end(), "", bb);
   
   new UnreachableInst(bb);