Gracefully handle struct decl/type mismatch when generating TypeInfo.

The type should have already been resolved if the struct
itself is, but due to multiple-types-per-declaration issues
in DMD, this might not be the case.

GitHub: Fixes #470.
This commit is contained in:
David Nadlinger 2013-10-13 21:52:21 +02:00
parent 07eec1840e
commit 07e8fe4908

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;