dbghelp: Don't crash when parsing the forward declaration of a function.
This commit is contained in:
parent
34c0bd760f
commit
1a34d70354
|
@ -1679,7 +1679,7 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
|
|||
symt_add_function_point(ctx->module, subpgm.func, SymTagCustom,
|
||||
&subpgm.frame, NULL);
|
||||
}
|
||||
symt_normalize_function(subpgm.ctx->module, subpgm.func);
|
||||
if (subpgm.func) symt_normalize_function(subpgm.ctx->module, subpgm.func);
|
||||
|
||||
return di->symt;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue