Mercurial > projects > ldc
diff gen/complex.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 | 61f12f4651b5 |
children | 755abafbf25d |
line wrap: on
line diff
--- a/gen/complex.cpp Fri Jul 31 19:11:07 2009 +0200 +++ b/gen/complex.cpp Fri Jul 31 23:01:29 2009 +0200 @@ -111,9 +111,9 @@ 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);