better error reporting when ZAM code calls a function

This commit is contained in:
Vern Paxson 2023-02-09 11:24:35 -08:00
parent 1b6df1a04c
commit 2c9857a618
33 changed files with 38 additions and 52 deletions

View file

@ -1025,6 +1025,8 @@ const ZAMStmt ZAMCompiler::DoCall(const CallExpr* c, const NameExpr* n)
z.aux->can_change_globals = true;
z.call_expr = c;
if ( ! indirect || func_id->IsGlobal() )
{
z.aux->id_val = func_id;