# HG changeset patch # User Benjamin Kramer # Date 1248995790 -7200 # Node ID 4897323d47b5ccec64cd9bf9f224c8f2778a7bb2 # Parent ed0cffe895ec95008dd89ab25900bbc7f8290e1a ConstantAggregateZero moved back to LLVM 2.5-style API Requires LLVM >= 77635 diff -r ed0cffe895ec -r 4897323d47b5 gen/toir.cpp --- 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);