Runtime now compiles with D2 again. This does NOT mean it works flawlessly !!!

This commit is contained in:
Tomas Lindquist Olsen
2008-12-14 04:11:32 +01:00
parent b7bea99dbb
commit 9f2497ef77
2 changed files with 9 additions and 1 deletions

View File

@@ -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;

View File

@@ -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());