diff gen/statements.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 1d5c3354b3c2
children 8d086d552909
line wrap: on
line diff
--- a/gen/statements.cpp	Thu Aug 06 17:04:36 2009 +0200
+++ b/gen/statements.cpp	Thu Aug 06 01:47:39 2009 +0200
@@ -825,7 +825,7 @@
         std::vector<const LLType*> types;
         types.push_back(DtoSize_t());
         types.push_back(elemPtrTy);
-        const llvm::StructType* sTy = llvm::StructType::get(types);
+        const llvm::StructType* sTy = llvm::StructType::get(gIR->context(), types);
         std::vector<LLConstant*> sinits;
         sinits.push_back(DtoConstSize_t(inits.size()));
         sinits.push_back(arrPtr);