mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Remove getContainedType
from classes.cpp
(#4152)
This commit is contained in:
parent
7f0e7e5e13
commit
bdd647c558
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ DValue *DtoNewClass(const Loc &loc, TypeClass *tc, NewExp *newexp) {
|
|||
LLValue *mem;
|
||||
bool doInit = true;
|
||||
if (newexp->onstack) {
|
||||
mem = DtoRawAlloca(DtoType(tc)->getContainedType(0), tc->sym->alignsize,
|
||||
mem = DtoRawAlloca(getIrAggr(tc->sym)->getLLStructType(), tc->sym->alignsize,
|
||||
".newclass_alloca");
|
||||
} else {
|
||||
const bool useEHAlloc = global.params.ehnogc && newexp->thrownew;
|
||||
|
@ -153,7 +153,7 @@ void DtoInitClass(TypeClass *tc, LLValue *dst) {
|
|||
const bool isCPPclass = tc->sym->isCPPclass() ? true : false;
|
||||
if (!isCPPclass) {
|
||||
tmp = DtoGEP(st, dst, 0, 1, "monitor");
|
||||
val = LLConstant::getNullValue(tmp->getType()->getContainedType(0));
|
||||
val = LLConstant::getNullValue(getVoidPtrType());
|
||||
DtoStore(val, tmp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue