Apply workaround for #395 by klickverbot.

This commit is contained in:
Christian Kamm
2010-03-08 20:06:08 +01:00
parent ae32163f34
commit 532af253a9

View File

@@ -545,7 +545,9 @@ void DtoCatAssignElement(Type* arrayType, DValue* array, Expression* exp)
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");