getNullValue is in Constant again

Requires LLVM >= r77721
This commit is contained in:
Benjamin Kramer
2009-07-31 23:01:29 +02:00
parent 0a1d467ac7
commit 4c5457ba61
13 changed files with 35 additions and 35 deletions

View File

@@ -111,9 +111,9 @@ DValue* DtoComplex(Loc& loc, Type* to, DValue* val)
DtoGetComplexParts(loc, to, val, re, im);
if(!re)
re = gIR->context().getNullValue(DtoType(baserety));
re = LLConstant::getNullValue(DtoType(baserety));
if(!im)
im = gIR->context().getNullValue(DtoType(baseimty));
im = LLConstant::getNullValue(DtoType(baseimty));
LLValue* res = DtoAggrPair(complexTy, re, im);