diff 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
line wrap: on
line diff
--- a/gen/complex.cpp	Sat Jul 11 14:19:21 2009 +0200
+++ b/gen/complex.cpp	Mon Jul 13 12:17:58 2009 +0200
@@ -111,9 +111,9 @@
     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);