File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ package GOTO_Utils is
6464 Subprog_Body : Irep;
6565 A_Symbol_Table : in out Symbol_Table)
6666 with Pre => Kind (Subprog_Type) = I_Code_Type
67- and Kind (Subprog_Body) = I_Code_Block;
67+ and Kind (Subprog_Body) in I_Nil | I_Code_Block;
6868 -- Insert the subprogram specification into the symbol table
6969
7070 procedure New_Type_Symbol_Entry (Type_Name : Symbol_Id; Type_Of_Type : Irep;
Original file line number Diff line number Diff line change @@ -5457,7 +5457,7 @@ package body Tree_Walk is
54575457 Do_Subprogram_Specification (N);
54585458 Subprog_Name : constant Symbol_Id :=
54595459 Intern (Unique_Name (Defining_Unit_Name (N)));
5460- Default_Body : Irep := Make_Code_Block (Sloc (N));
5460+ Default_Body : Irep := Make_Nil (Sloc (N));
54615461 begin
54625462 if List_Length (Parameter_Specifications (N)) = 1 and
54635463 not (Kind (Get_Return_Type (Subprog_Type)) = I_Void_Type)
You can’t perform that action at this time.
0 commit comments