Mercurial > projects > ldc
diff gen/tocall.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 | ad7f2f1862d6 |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/tocall.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/tocall.cpp Wed Jul 15 18:09:41 2009 +0200 @@ -207,7 +207,7 @@ pinits.push_back(DtoConstSize_t(vtype->getNumElements())); pinits.push_back(llvm::ConstantExpr::getBitCast(typeinfomem, getPtrToType(typeinfotype))); const LLType* tiarrty = DtoType(Type::typeinfo->type->arrayOf()); - tiinits = llvm::ConstantStruct::get(pinits); + tiinits = gIR->context().getConstantStruct(pinits); LLValue* typeinfoarrayparam = new llvm::GlobalVariable(*gIR->module, tiarrty, true, llvm::GlobalValue::InternalLinkage, tiinits, "._arguments.array");