ConstantAggregateZero moved back to LLVM 2.5-style API

Requires LLVM >= 77635
This commit is contained in:
Benjamin Kramer
2009-07-31 01:16:30 +02:00
parent e34f07505b
commit 652a4b39c0

View File

@@ -338,7 +338,7 @@ LLConstant* NullExp::toConstElem(IRState* p)
const LLType* t = DtoType(type);
if (type->ty == Tarray) {
assert(isaStruct(t));
return gIR->context().getConstantAggregateZero(t);
return llvm::ConstantAggregateZero::get(t);
}
else {
return gIR->context().getNullValue(t);