mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Emit debug info for variables that are used in nested functions
This commit is contained in:
@@ -729,6 +729,15 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
#endif
|
||||
}
|
||||
|
||||
// give the 'nestArg' storage
|
||||
if (f->fty.arg_nest)
|
||||
{
|
||||
LLValue *nestArg = irfunction->nestArg;
|
||||
LLValue *val = DtoRawAlloca(nestArg->getType(), 0, "nestedFrame");
|
||||
DtoStore(nestArg, val);
|
||||
irfunction->nestArg = val;
|
||||
}
|
||||
|
||||
// give arguments storage
|
||||
// and debug info
|
||||
if (fd->parameters)
|
||||
|
||||
Reference in New Issue
Block a user