mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
[svn r310] Fixed a problem with incomplete types and templates in typeinfo code.
This commit is contained in:
parent
87feaef81b
commit
5f247bb394
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue