mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 11:56:12 +03:00
[trivial] Adapt whitespace style.
This commit is contained in:
parent
ce5750c4b4
commit
2c30cdb2d1
1 changed files with 4 additions and 3 deletions
|
@ -153,15 +153,16 @@ void DtoInitClass(TypeClass* tc, LLValue* dst)
|
||||||
DtoResolveClass(tc->sym);
|
DtoResolveClass(tc->sym);
|
||||||
|
|
||||||
// Set vtable field. Doing this seperately might be optimized better.
|
// Set vtable field. Doing this seperately might be optimized better.
|
||||||
LLValue* tmp = DtoGEPi(dst,0,0,"vtbl");
|
LLValue* tmp = DtoGEPi(dst, 0, 0, "vtbl");
|
||||||
LLValue* val = DtoBitCast(tc->sym->ir.irAggr->getVtblSymbol(), tmp->getType()->getContainedType(0));
|
LLValue* val = DtoBitCast(tc->sym->ir.irAggr->getVtblSymbol(),
|
||||||
|
tmp->getType()->getContainedType(0));
|
||||||
DtoStore(val, tmp);
|
DtoStore(val, tmp);
|
||||||
|
|
||||||
// For D classes, set the monitor field to null.
|
// For D classes, set the monitor field to null.
|
||||||
const bool isCPPclass = tc->sym->isCPPclass() ? true : false;
|
const bool isCPPclass = tc->sym->isCPPclass() ? true : false;
|
||||||
if (!isCPPclass)
|
if (!isCPPclass)
|
||||||
{
|
{
|
||||||
tmp = DtoGEPi(dst,0,1,"monitor");
|
tmp = DtoGEPi(dst, 0, 1, "monitor");
|
||||||
val = LLConstant::getNullValue(tmp->getType()->getContainedType(0));
|
val = LLConstant::getNullValue(tmp->getType()->getContainedType(0));
|
||||||
DtoStore(val, tmp);
|
DtoStore(val, tmp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue