mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 12:59:21 +03:00
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:
parent
07eec1840e
commit
07e8fe4908
1 changed files with 1 additions and 1 deletions
|
@ -618,7 +618,7 @@ void TypeInfoStructDeclaration::llvmDefine()
|
||||||
initPtr = getNullValue(getVoidPtrType());
|
initPtr = getNullValue(getVoidPtrType());
|
||||||
else
|
else
|
||||||
initPtr = iraggr->getInitSymbol();
|
initPtr = iraggr->getInitSymbol();
|
||||||
b.push_void_array(getTypeStoreSize(tc->irtype->getLLType()), initPtr);
|
b.push_void_array(getTypeStoreSize(DtoType(tc)), initPtr);
|
||||||
|
|
||||||
// toX functions ground work
|
// toX functions ground work
|
||||||
static TypeFunction *tftohash;
|
static TypeFunction *tftohash;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue