Mercurial > projects > ldc
diff gen/tocall.cpp @ 1569:755abafbf25d
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 01:47:39 +0200 |
parents | d6e8d5db259f |
children | 8d086d552909 |
line wrap: on
line diff
--- a/gen/tocall.cpp Thu Aug 06 17:04:36 2009 +0200 +++ b/gen/tocall.cpp Thu Aug 06 01:47:39 2009 +0200 @@ -160,11 +160,11 @@ gah.push_back(DtoSize_t()); gah_sz += PTRSIZE; } - vtypes.back() = LLStructType::get(gah, true); + vtypes.back() = LLStructType::get(gIR->context(), gah, true); } } } - const LLStructType* vtype = LLStructType::get(vtypes); + const LLStructType* vtype = LLStructType::get(gIR->context(), vtypes); if (Logger::enabled()) Logger::cout() << "d-variadic argument struct type:\n" << *vtype << '\n'; @@ -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 = LLConstantStruct::get(pinits); + tiinits = LLConstantStruct::get(gIR->context(), pinits); LLValue* typeinfoarrayparam = new llvm::GlobalVariable(*gIR->module, tiarrty, true, llvm::GlobalValue::InternalLinkage, tiinits, "._arguments.array");