Mercurial > projects > ldc
changeset 1466:8bf5fa175555
Make sure typeinfo output are mutable types, this is a temporary workaround to get druntime genobj.d to compile until we figure out what typeinfos are actually needed here and there ...
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 03 Jun 2009 04:12:28 +0200 |
parents | dd72f56ad211 |
children | 630fc54f7c1e |
files | gen/llvmhelpers.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Wed Jun 03 03:49:24 2009 +0200 +++ b/gen/llvmhelpers.cpp Wed Jun 03 04:12:28 2009 +0200 @@ -1318,7 +1318,12 @@ LLConstant* DtoTypeInfoOf(Type* type, bool base) { +#if DMDV2 + // FIXME: this is probably wrong, but it makes druntime's genobj.d compile! + type = type->mutableOf()->merge(); // needed.. getTypeInfo does the same +#else type = type->merge(); // needed.. getTypeInfo does the same +#endif type->getTypeInfo(NULL); TypeInfoDeclaration* tidecl = type->vtinfo; assert(tidecl);