mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 11:56:12 +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;
|
LLValue *mem;
|
||||||
bool doInit = true;
|
bool doInit = true;
|
||||||
if (newexp->onstack) {
|
if (newexp->onstack) {
|
||||||
mem = DtoRawAlloca(DtoType(tc)->getContainedType(0), tc->sym->alignsize,
|
mem = DtoRawAlloca(getIrAggr(tc->sym)->getLLStructType(), tc->sym->alignsize,
|
||||||
".newclass_alloca");
|
".newclass_alloca");
|
||||||
} else {
|
} else {
|
||||||
const bool useEHAlloc = global.params.ehnogc && newexp->thrownew;
|
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;
|
const bool isCPPclass = tc->sym->isCPPclass() ? true : false;
|
||||||
if (!isCPPclass) {
|
if (!isCPPclass) {
|
||||||
tmp = DtoGEP(st, dst, 0, 1, "monitor");
|
tmp = DtoGEP(st, dst, 0, 1, "monitor");
|
||||||
val = LLConstant::getNullValue(tmp->getType()->getContainedType(0));
|
val = LLConstant::getNullValue(getVoidPtrType());
|
||||||
DtoStore(val, tmp);
|
DtoStore(val, tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue