mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 07:00:46 +03:00
Emit debug info for variables that are used in nested functions
This commit is contained in:
parent
cedb4c0e68
commit
b8721a8515
7 changed files with 103 additions and 25 deletions
|
@ -519,7 +519,7 @@ void DtoAssign(Loc& loc, DValue* lhs, DValue* rhs, int op)
|
|||
DVarValue *var = lhs->isVar();
|
||||
VarDeclaration *varDecl = var ? var->var : 0;
|
||||
if (global.params.symdebug && varDecl && varDecl->debugVariable)
|
||||
DtoDwarfValue(rhs->getRVal(), lhs->isVar()->var);
|
||||
DtoDwarfValue(lhs->getRVal(), varDecl);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue