Fixed cases when debug info of a variable was emitted several times

This commit is contained in:
Alexey Prokhin
2011-12-04 15:05:56 +04:00
parent 91f4e5d015
commit 784e3f1542

View File

@@ -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);
}
/****************************************************************************************/