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
64
64
Subprog_Body : Irep;
65
65
A_Symbol_Table : in out Symbol_Table)
66
66
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;
68
68
-- Insert the subprogram specification into the symbol table
69
69
70
70
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
5457
5457
Do_Subprogram_Specification (N);
5458
5458
Subprog_Name : constant Symbol_Id :=
5459
5459
Intern (Unique_Name (Defining_Unit_Name (N)));
5460
- Default_Body : Irep := Make_Code_Block (Sloc (N));
5460
+ Default_Body : Irep := Make_Nil (Sloc (N));
5461
5461
begin
5462
5462
if List_Length (Parameter_Specifications (N)) = 1 and
5463
5463
not (Kind (Get_Return_Type (Subprog_Type)) = I_Void_Type)
You can’t perform that action at this time.
0 commit comments