Mercurial > projects > ldc
comparison gen/arrays.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 | 06d5cc873350 |
children | 755abafbf25d |
comparison
equal
deleted
inserted
replaced
1559:06d5cc873350 | 1560:1d5c3354b3c2 |
---|---|
58 LOG_SCOPE; | 58 LOG_SCOPE; |
59 | 59 |
60 assert(isaPointer(v)); | 60 assert(isaPointer(v)); |
61 const LLType* t = v->getType()->getContainedType(0); | 61 const LLType* t = v->getType()->getContainedType(0); |
62 | 62 |
63 DtoStore(gIR->context().getNullValue(t), v); | 63 DtoStore(LLConstant::getNullValue(t), v); |
64 } | 64 } |
65 | 65 |
66 ////////////////////////////////////////////////////////////////////////////////////////// | 66 ////////////////////////////////////////////////////////////////////////////////////////// |
67 | 67 |
68 void DtoArrayInit(Loc& loc, DValue* array, DValue* value) | 68 void DtoArrayInit(Loc& loc, DValue* array, DValue* value) |