Merge pull request #511 from klickverbot/issue-470

Gracefully handle struct decl/type mismatch when generating TypeInfo.
This commit is contained in:
David Nadlinger
2013-10-13 18:24:21 -07:00

View File

@@ -618,7 +618,7 @@ void TypeInfoStructDeclaration::llvmDefine()
initPtr = getNullValue(getVoidPtrType());
else
initPtr = iraggr->getInitSymbol();
b.push_void_array(getTypeStoreSize(tc->irtype->getLLType()), initPtr);
b.push_void_array(getTypeStoreSize(DtoType(tc)), initPtr);
// toX functions ground work
static TypeFunction *tftohash;