diff gen/llvmhelpers.cpp @ 1554:d6e8d5db259f

LLVMContext changes up to r77366
author Benjamin Kramer <benny.kra@gmail.com>
date Thu, 30 Jul 2009 15:25:10 +0200
parents 08c8ef491c97
children 1d5c3354b3c2
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Thu Jul 23 20:34:35 2009 +0200
+++ b/gen/llvmhelpers.cpp	Thu Jul 30 15:25:10 2009 +0200
@@ -514,7 +514,7 @@
     }
 
     if (to->ty == Tbool) {
-        LLValue* zero = gIR->context().getConstantInt(rval->getType(), 0, false);
+        LLValue* zero = LLConstantInt::get(rval->getType(), 0, false);
         rval = gIR->ir->CreateICmpNE(rval, zero, "tmp");
     }
     else if (to->isintegral()) {