diff gen/complex.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 cc40db549aea
children a34078905d01
line wrap: on
line diff
--- a/gen/complex.cpp	Tue Aug 05 08:08:00 2008 +0200
+++ b/gen/complex.cpp	Tue Aug 05 19:28:19 2008 +0200
@@ -475,7 +475,7 @@
 
         // unfortunately at this point, the cast value can show up as the lvalue for += and similar expressions.
         // so we need to give it storage, or fix the system that handles this stuff (DLRValue)
-        LLValue* mem = new llvm::AllocaInst(DtoType(_to), "castcomplextmp", gIR->topallocapoint());
+        LLValue* mem = DtoAlloca(DtoType(_to), "castcomplextmp");
         DtoComplexSet(mem, re, im);
         return new DLRValue(val, new DImValue(_to, mem));
     }