Don't use llvm::getGlobalContext() anymore

This commit is contained in:
Benjamin Kramer
2009-07-13 20:16:15 +02:00
parent 331319dab1
commit 0ee2f34611
21 changed files with 59 additions and 48 deletions

View File

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