diff gen/tollvm.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 d6e8d5db259f
children 755abafbf25d
line wrap: on
line diff
--- a/gen/tollvm.cpp	Fri Jul 31 19:11:07 2009 +0200
+++ b/gen/tollvm.cpp	Fri Jul 31 23:01:29 2009 +0200
@@ -212,7 +212,7 @@
     llvm::Value *b1, *b2;
     if (rhs == NULL)
     {
-        rhs = gIR->context().getNullValue(lhs->getType());
+        rhs = LLConstant::getNullValue(lhs->getType());
     }
 
     LLValue* l = gIR->ir->CreateExtractValue(lhs, 0);
@@ -740,7 +740,7 @@
 
 LLConstant* getNullValue(const LLType* t)
 {
-    return gIR->context().getNullValue(t);
+    return LLConstant::getNullValue(t);
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////