mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-22 07:43:18 +01:00
Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding.
This commit is contained in:
@@ -795,7 +795,7 @@ DValue* DtoNewClass(TypeClass* tc, NewExp* newexp)
|
||||
LLValue* mem;
|
||||
if (newexp->onstack)
|
||||
{
|
||||
mem = new llvm::AllocaInst(DtoType(tc)->getContainedType(0), ".newclass_alloca", gIR->topallocapoint());
|
||||
mem = DtoAlloca(DtoType(tc)->getContainedType(0), ".newclass_alloca");
|
||||
}
|
||||
// custom allocator
|
||||
else if (newexp->allocator)
|
||||
|
||||
Reference in New Issue
Block a user