Mercurial > projects > ldc
comparison gen/functions.cpp @ 1560:1d5c3354b3c2
getNullValue is in Constant again
Requires LLVM >= r77721
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 31 Jul 2009 23:01:29 +0200 |
parents | 61f12f4651b5 |
children | 8d086d552909 |
comparison
equal
deleted
inserted
replaced
1559:06d5cc873350 | 1560:1d5c3354b3c2 |
---|---|
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(gIR->context().getNullValue(func->getReturnType()), bb); | 814 llvm::ReturnInst::Create(LLConstant::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 |