mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Different fixes for d2
This commit is contained in:
@@ -896,7 +896,11 @@ const LLStructType* DtoModuleReferenceType()
|
||||
// add members
|
||||
std::vector<const LLType*> types;
|
||||
types.push_back(getPtrToType(opaque));
|
||||
#if DMDV1
|
||||
types.push_back(DtoType(Module::moduleinfo->type));
|
||||
#else
|
||||
types.push_back(DtoType(Module::moduleinfo->type->pointerTo()));
|
||||
#endif
|
||||
|
||||
// resolve type
|
||||
const LLStructType* st = LLStructType::get(gIR->context(), types);
|
||||
|
||||
Reference in New Issue
Block a user