about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
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);