Mercurial > projects > ldc
diff ir/irtypeclass.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 | 2292878925f4 |
children | 8d086d552909 |
line wrap: on
line diff
--- a/ir/irtypeclass.cpp Thu Aug 06 17:04:36 2009 +0200 +++ b/ir/irtypeclass.cpp Thu Aug 06 01:47:39 2009 +0200 @@ -258,7 +258,7 @@ fatal(); // build the llvm type - const llvm::Type* st = llvm::StructType::get(defaultTypes, false); + const llvm::Type* st = llvm::StructType::get(gIR->context(), defaultTypes, false); // refine type llvm::cast<llvm::OpaqueType>(pa.get())->refineAbstractTypeTo(st); @@ -324,7 +324,7 @@ } // build the vtbl llvm type - return llvm::StructType::get(types, false); + return llvm::StructType::get(gIR->context(), types, false); } //////////////////////////////////////////////////////////////////////////////