mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 13:53:14 +01:00
Merge pull request #511 from klickverbot/issue-470
Gracefully handle struct decl/type mismatch when generating TypeInfo.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user