Handle undefined struct types when generating headers.

This commit is contained in:
Matt Pharr
2012-05-30 16:28:21 -07:00
parent fe8b109ca5
commit ef049e92ef

View File

@@ -1136,6 +1136,9 @@ lGetExportedTypes(const Type *type,
lGetExportedTypes(structType->GetElementType(i), exportedStructTypes,
exportedEnumTypes, exportedVectorTypes);
}
else if (CastType<UndefinedStructType>(type) != NULL)
// do nothing
;
else if (CastType<EnumType>(type) != NULL)
lAddTypeIfNew(type, exportedEnumTypes);
else if (CastType<VectorType>(type) != NULL)