comparison gen/functions.cpp @ 1534:8ca25bd765a3

Build fix for the latest LLVMContext changes (LLVM r75445) This shouldn't break the build with older LLVM revs. We include LLVMContext.h in gen/llvm.h now to make the transition a little bit easier.
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 13 Jul 2009 12:17:58 +0200
parents b6b6afc2dfc7
children 61f12f4651b5
comparison
equal deleted inserted replaced
1533:d1652c8fb4f6 1534:8ca25bd765a3
809 else { 809 else {
810 llvm::ReturnInst::Create(llvm::UndefValue::get(func->getReturnType()), bb); 810 llvm::ReturnInst::Create(llvm::UndefValue::get(func->getReturnType()), bb);
811 } 811 }
812 } 812 }
813 else 813 else
814 llvm::ReturnInst::Create(llvm::Constant::getNullValue(func->getReturnType()), bb); 814 llvm::ReturnInst::Create(llvm::getGlobalContext().getNullValue(func->getReturnType()), bb);
815 } 815 }
816 816
817 // std::cout << *func << std::endl; 817 // std::cout << *func << std::endl;
818 818
819 // erase alloca point 819 // erase alloca point