mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
This commit is contained in:
@@ -2517,7 +2517,7 @@ LLConstant* StructLiteralExp::toConstElem(IRState* p)
|
||||
constvals[i] = llvm::cast<LLConstant>(values[i]);
|
||||
|
||||
// return constant struct
|
||||
return LLConstantStruct::get(constvals, sd->ir.irStruct->packed);
|
||||
return LLConstantStruct::get(gIR->context(), constvals, sd->ir.irStruct->packed);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user