diff gen/asmstmt.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 7fcb72d518f6
children 8d086d552909
line wrap: on
line diff
--- a/gen/asmstmt.cpp	Thu Jul 23 20:34:35 2009 +0200
+++ b/gen/asmstmt.cpp	Thu Jul 30 15:25:10 2009 +0200
@@ -769,7 +769,7 @@
         for(it = gotoToVal.begin(); it != end; ++it)
         {
             llvm::BasicBlock* casebb = llvm::BasicBlock::Create("case", p->topfunc(), bb);
-            sw->addCase(gIR->context().getConstantInt(llvm::IntegerType::get(32), it->second), casebb);
+            sw->addCase(LLConstantInt::get(llvm::IntegerType::get(32), it->second), casebb);
 
             p->scope() = IRScope(casebb,bb);
             DtoGoto(loc, it->first, enclosingFinally);