Mercurial > projects > ldc
diff gen/toir.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 | f1f33c8dcd90 |
children | 8d086d552909 |
line wrap: on
line diff
--- a/gen/toir.cpp Thu Aug 06 17:04:36 2009 +0200 +++ b/gen/toir.cpp Thu Aug 06 01:47:39 2009 +0200 @@ -2517,7 +2517,7 @@ constvals[i] = llvm::cast<LLConstant>(values[i]); // return constant struct - return LLConstantStruct::get(constvals, sd->ir.irStruct->packed); + return LLConstantStruct::get(gIR->context(), constvals, sd->ir.irStruct->packed); } //////////////////////////////////////////////////////////////////////////////////////////