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:
@@ -447,7 +447,7 @@ void DtoCreateNestedContext(FuncDeclaration* fd) {
|
||||
}
|
||||
}
|
||||
|
||||
const LLStructType* frameType = LLStructType::get(types);
|
||||
const LLStructType* frameType = LLStructType::get(gIR->context(), types);
|
||||
gIR->module->addTypeName(std::string("nest.") + fd->toChars(), frameType);
|
||||
|
||||
Logger::cout() << "frameType = " << *frameType << '\n';
|
||||
|
||||
Reference in New Issue
Block a user