Commit 24199974 authored by John van Groningen's avatar John van Groningen
Browse files

initialize sdef_ancestor if a new local function is created,

to prevent access to uninitialized value in is_tail_call_modulo_cons_node
parent 4cd57cfd
......@@ -1013,6 +1013,7 @@ static Symbol new_rule_symbol (char *function_name)
function_ident=PutStringInHashTable (function_name,SymbolIdTable);
function_sdef=MakeNewSymbolDefinition (CurrentModule,function_ident,0,IMPRULE);
function_sdef->sdef_ancestor = ~next_def_number;
function_sdef->sdef_number=next_def_number++;
function_sdef->sdef_isused=True;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment