changeset 1638:0de4525a9ed6

Apply workaround for #395 by klickverbot.
author Christian Kamm <kamm incasoftware de>
date Mon, 08 Mar 2010 20:06:08 +0100
parents 332925de1881
children 41145d30acb8
files gen/arrays.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/arrays.cpp	Mon Mar 08 17:44:38 2010 +0100
+++ b/gen/arrays.cpp	Mon Mar 08 20:06:08 2010 +0100
@@ -545,7 +545,9 @@
         valueToAppend = expVal->getLVal();
     else {
         valueToAppend = DtoAlloca(expVal->getType(), ".appendingElementOnStack");
-        DtoStore(expVal->getRVal(), valueToAppend);
+        DVarValue lval(expVal->getType(), valueToAppend);
+        Loc loc;
+        DtoAssign(loc, &lval, expVal);
     }
 
     LLFunction* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_arrayappendcT");