Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/gen/classes.cpp Tue Aug 05 08:08:00 2008 +0200 +++ b/gen/classes.cpp Tue Aug 05 19:28:19 2008 +0200 @@ -795,7 +795,7 @@ 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)