mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 22:03:14 +01:00
Runtime now compiles with D2 again. This does NOT mean it works flawlessly !!!
This commit is contained in:
@@ -64,7 +64,7 @@ Global::Global()
|
||||
|
||||
copyright = "Copyright (c) 1999-2008 by Digital Mars and Tomas Lindquist Olsen";
|
||||
written = "written by Walter Bright and Tomas Lindquist Olsen";
|
||||
version = "v2.020";
|
||||
version = "v2.021";
|
||||
ldc_version = "0.1";
|
||||
global.structalign = 8;
|
||||
|
||||
|
||||
@@ -116,14 +116,22 @@ const LLType* DtoType(Type* t)
|
||||
|
||||
// aggregates
|
||||
case Tstruct: {
|
||||
#if DMDV2
|
||||
TypeStruct* ts = (TypeStruct*)t->mutableOf();
|
||||
#else
|
||||
TypeStruct* ts = (TypeStruct*)t;
|
||||
#endif
|
||||
assert(ts->sym);
|
||||
DtoResolveDsymbol(ts->sym);
|
||||
return ts->ir.type->get();
|
||||
}
|
||||
|
||||
case Tclass: {
|
||||
#if DMDV2
|
||||
TypeClass* tc = (TypeClass*)t->mutableOf();
|
||||
#else
|
||||
TypeClass* tc = (TypeClass*)t;
|
||||
#endif
|
||||
assert(tc->sym);
|
||||
DtoResolveDsymbol(tc->sym);
|
||||
return getPtrToType(tc->ir.type->get());
|
||||
|
||||
Reference in New Issue
Block a user