mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
This commit is contained in:
@@ -362,7 +362,7 @@ LLType* DtoUnpaddedStructType(Type* dty) {
|
||||
}
|
||||
types.push_back(fty);
|
||||
}
|
||||
LLType* Ty = LLStructType::get(types);
|
||||
LLType* Ty = LLStructType::get(gIR->context(), types);
|
||||
cache.insert(std::make_pair(dty, Ty));
|
||||
return Ty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user