mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-27 18:13:13 +01:00
[svn r310] Fixed a problem with incomplete types and templates in typeinfo code.
This commit is contained in:
@@ -1085,6 +1085,7 @@ void DtoAnnotation(const char* str)
|
||||
|
||||
LLConstant* DtoTypeInfoOf(Type* type, bool base)
|
||||
{
|
||||
type = type->merge(); // seems like this is needed in some cases with templates.
|
||||
const LLType* typeinfotype = DtoType(Type::typeinfo->type);
|
||||
if (!type->vtinfo)
|
||||
type->getTypeInfo(NULL);
|
||||
@@ -1098,6 +1099,8 @@ LLConstant* DtoTypeInfoOf(Type* type, bool base)
|
||||
return c;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void findDefaultTarget()
|
||||
{
|
||||
std::string err_str;
|
||||
|
||||
Reference in New Issue
Block a user