Mercurial > projects > ldc
comparison gen/arrays.cpp @ 1534:8ca25bd765a3
Build fix for the latest LLVMContext changes (LLVM r75445)
This shouldn't break the build with older LLVM revs. We include
LLVMContext.h in gen/llvm.h now to make the transition a little bit
easier.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 12:17:58 +0200 |
parents | ad7f2f1862d6 |
children | 61f12f4651b5 |
comparison
equal
deleted
inserted
replaced
1533:d1652c8fb4f6 | 1534:8ca25bd765a3 |
---|---|
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(LLConstant::getNullValue(t), v); | 63 DtoStore(llvm::getGlobalContext().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) |