Mercurial > projects > ldc
diff gen/asmstmt.cpp @ 1545:7fcb72d518f6
More factory methods moved to LLVMContext
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 18:09:41 +0200 |
parents | 2292878925f4 |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/asmstmt.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/asmstmt.cpp Wed Jul 15 18:09:41 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(llvm::ConstantInt::get(llvm::IntegerType::get(32), it->second), casebb); + sw->addCase(gIR->context().getConstantInt(llvm::IntegerType::get(32), it->second), casebb); p->scope() = IRScope(casebb,bb); DtoGoto(loc, it->first, enclosingFinally);