mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-13 14:36:18 +03:00
[svn r313] Fix class initializer size regression introduced in [305].
Fixes memory_management_05 and odd_bug_15_A.
This commit is contained in:
parent
33b9d4348c
commit
870aae3454
1 changed files with 2 additions and 2 deletions
|
@ -1482,8 +1482,8 @@ void DtoDefineClassInfo(ClassDeclaration* cd)
|
|||
}
|
||||
else {
|
||||
c = llvm::ConstantExpr::getBitCast(cd->ir.irStruct->init, byteptrty);
|
||||
assert(!defc->getType()->isAbstract());
|
||||
size_t initsz = getABITypeSize(defc->getType());
|
||||
assert(!cd->ir.irStruct->constInit->getType()->isAbstract());
|
||||
size_t initsz = getABITypeSize(cd->ir.irStruct->constInit->getType());
|
||||
c = DtoConstSlice(DtoConstSize_t(initsz), c);
|
||||
}
|
||||
inits.push_back(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue