mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 07:13:13 +01:00
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 ...
This commit is contained in:
@@ -1318,7 +1318,12 @@ void DtoAnnotation(const char* str)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user