mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
This commit is contained in:
@@ -16,7 +16,7 @@ const llvm::StructType* DtoComplexType(Type* type)
|
||||
{
|
||||
Type* t = type->toBasetype();
|
||||
const LLType* base = DtoComplexBaseType(t);
|
||||
return llvm::StructType::get(base, base, NULL);
|
||||
return llvm::StructType::get(gIR->context(), base, base, NULL);
|
||||
}
|
||||
|
||||
const LLType* DtoComplexBaseType(Type* t)
|
||||
|
||||
Reference in New Issue
Block a user