diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 94b08c7a..aa555492 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -515,7 +515,7 @@ void DtoAssign(Loc& loc, DValue* lhs, DValue* rhs, int op) DVarValue *var = lhs->isVar(); VarDeclaration *vd = var ? var->var : 0; if (vd) - DtoDwarfValue(lhs->getRVal(), vd); + DtoDwarfValue(DtoLoad(var->getLVal()), vd); } /****************************************************************************************/