mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
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.
This commit is contained in:
@@ -111,9 +111,9 @@ DValue* DtoComplex(Loc& loc, Type* to, DValue* val)
|
||||
DtoGetComplexParts(loc, to, val, re, im);
|
||||
|
||||
if(!re)
|
||||
re = LLConstant::getNullValue(DtoType(baserety));
|
||||
re = llvm::getGlobalContext().getNullValue(DtoType(baserety));
|
||||
if(!im)
|
||||
im = LLConstant::getNullValue(DtoType(baseimty));
|
||||
im = llvm::getGlobalContext().getNullValue(DtoType(baseimty));
|
||||
|
||||
LLValue* res = DtoAggrPair(complexTy, re, im);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user