comparison gen/classes.cpp @ 479:672eb4893b55

Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding.
author Christian Kamm <kamm incasoftware de>
date Tue, 05 Aug 2008 19:28:19 +0200
parents 3424f0fab7a9
children a34078905d01
comparison
equal deleted inserted replaced
478:b657298222d9 479:672eb4893b55
793 793
794 // allocate 794 // allocate
795 LLValue* mem; 795 LLValue* mem;
796 if (newexp->onstack) 796 if (newexp->onstack)
797 { 797 {
798 mem = new llvm::AllocaInst(DtoType(tc)->getContainedType(0), ".newclass_alloca", gIR->topallocapoint()); 798 mem = DtoAlloca(DtoType(tc)->getContainedType(0), ".newclass_alloca");
799 } 799 }
800 // custom allocator 800 // custom allocator
801 else if (newexp->allocator) 801 else if (newexp->allocator)
802 { 802 {
803 DtoForceDeclareDsymbol(newexp->allocator); 803 DtoForceDeclareDsymbol(newexp->allocator);