Mercurial > projects > ldc
comparison gen/complex.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 |
---|---|
109 | 109 |
110 LLValue *re, *im; | 110 LLValue *re, *im; |
111 DtoGetComplexParts(loc, to, val, re, im); | 111 DtoGetComplexParts(loc, to, val, re, im); |
112 | 112 |
113 if(!re) | 113 if(!re) |
114 re = LLConstant::getNullValue(DtoType(baserety)); | 114 re = llvm::getGlobalContext().getNullValue(DtoType(baserety)); |
115 if(!im) | 115 if(!im) |
116 im = LLConstant::getNullValue(DtoType(baseimty)); | 116 im = llvm::getGlobalContext().getNullValue(DtoType(baseimty)); |
117 | 117 |
118 LLValue* res = DtoAggrPair(complexTy, re, im); | 118 LLValue* res = DtoAggrPair(complexTy, re, im); |
119 | 119 |
120 return new DImValue(to, res); | 120 return new DImValue(to, res); |
121 } | 121 } |