[svn r310] Fixed a problem with incomplete types and templates in typeinfo code.

This commit is contained in:
Tomas Lindquist Olsen 2008-06-21 16:22:29 +02:00
parent 87feaef81b
commit 5f247bb394

View file

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