mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
ConstantAggregateZero moved back to LLVM 2.5-style API
Requires LLVM >= 77635
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user