Mercurial > projects > ldc
diff gen/toobj.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 | d6e8d5db259f |
children | c03d164e96d9 |
line wrap: on
line diff
--- a/gen/toobj.cpp Fri Jul 31 19:11:07 2009 +0200 +++ b/gen/toobj.cpp Fri Jul 31 23:01:29 2009 +0200 @@ -557,7 +557,7 @@ // provide the default initializer const LLStructType* modulerefTy = DtoModuleReferenceType(); std::vector<LLConstant*> mrefvalues; - mrefvalues.push_back(gIR->context().getNullValue(modulerefTy->getContainedType(0))); + mrefvalues.push_back(LLConstant::getNullValue(modulerefTy->getContainedType(0))); mrefvalues.push_back(llvm::ConstantExpr::getBitCast(moduleinfo, modulerefTy->getContainedType(1))); LLConstant* thismrefinit = LLConstantStruct::get(modulerefTy, mrefvalues);