Skip to content

Commit f80be41

Browse files
committed
Merge pull request #511 from klickverbot/issue-470
Gracefully handle struct decl/type mismatch when generating TypeInfo.
2 parents 19066c4 + 07e8fe4 commit f80be41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen/typinf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ void TypeInfoStructDeclaration::llvmDefine()
618618
initPtr = getNullValue(getVoidPtrType());
619619
else
620620
initPtr = iraggr->getInitSymbol();
621-
b.push_void_array(getTypeStoreSize(tc->irtype->getLLType()), initPtr);
621+
b.push_void_array(getTypeStoreSize(DtoType(tc)), initPtr);
622622

623623
// toX functions ground work
624624
static TypeFunction *tftohash;

0 commit comments

Comments
 (0)