Mercurial > projects > ldc
changeset 1556:4897323d47b5
ConstantAggregateZero moved back to LLVM 2.5-style API
Requires LLVM >= 77635
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 31 Jul 2009 01:16:30 +0200 |
parents | ed0cffe895ec |
children | d11aeae19b95 |
files | gen/toir.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/toir.cpp Thu Jul 30 20:54:03 2009 +0200 +++ b/gen/toir.cpp Fri Jul 31 01:16:30 2009 +0200 @@ -338,7 +338,7 @@ 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);