diff gen/aa.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 45a67b6f1310
children fbb1a366cfbc
line wrap: on
line diff
--- a/gen/aa.cpp	Tue Aug 05 08:08:00 2008 +0200
+++ b/gen/aa.cpp	Tue Aug 05 19:28:19 2008 +0200
@@ -36,7 +36,7 @@
         pkey = key->getRVal();
     }
     else {
-        LLValue* tmp = new llvm::AllocaInst(DtoType(keytype), "aatmpkeystorage", gIR->topallocapoint());
+        LLValue* tmp = DtoAlloca(DtoType(keytype), "aatmpkeystorage");
         DVarValue* var = new DVarValue(keytype, tmp, true);
         DtoAssign(loc, var, key);
         return tmp;
@@ -44,7 +44,7 @@
 
     // give memory
     if (needmem) {
-        LLValue* tmp = new llvm::AllocaInst(DtoType(keytype), "aatmpkeystorage", gIR->topallocapoint());
+        LLValue* tmp = DtoAlloca(DtoType(keytype), "aatmpkeystorage");
         DtoStore(pkey, tmp);
         pkey = tmp;
     }