# HG changeset patch # User Tomas Lindquist Olsen # Date 1243995148 -7200 # Node ID 8bf5fa175555c5227c181bf7e523c1b4f05fe353 # Parent dd72f56ad211126f7fc759ed81d4f75beee3c7da 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 ... diff -r dd72f56ad211 -r 8bf5fa175555 gen/llvmhelpers.cpp --- 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);