diff ir/irstruct.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/ir/irstruct.cpp	Fri Jul 31 19:11:07 2009 +0200
+++ b/ir/irstruct.cpp	Fri Jul 31 23:01:29 2009 +0200
@@ -117,22 +117,22 @@
     {
         if (global.params.is64bit && diff % 8 == 0)
         {
-            constants.push_back(gIR->context().getNullValue(llvm::Type::Int64Ty));
+            constants.push_back(LLConstant::getNullValue(llvm::Type::Int64Ty));
             diff -= 8;
         }
         else if (diff % 4 == 0)
         {
-            constants.push_back(gIR->context().getNullValue(llvm::Type::Int32Ty));
+            constants.push_back(LLConstant::getNullValue(llvm::Type::Int32Ty));
             diff -= 4;
         }
         else if (diff % 2 == 0)
         {
-            constants.push_back(gIR->context().getNullValue(llvm::Type::Int16Ty));
+            constants.push_back(LLConstant::getNullValue(llvm::Type::Int16Ty));
             diff -= 2;
         }
         else
         {
-            constants.push_back(gIR->context().getNullValue(llvm::Type::Int8Ty));
+            constants.push_back(LLConstant::getNullValue(llvm::Type::Int8Ty));
             diff -= 1;
         }
     }