aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/simulate/elaboration.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-02-14 08:47:44 +0100
committerTristan Gingold <tgingold@free.fr>2016-02-14 13:52:35 +0100
commite7adf198b9cfc3a79e690767d499147a97ffea17 (patch)
tree25b5dce05aaf36941117059a438ecf3977a2b2f2 /src/vhdl/simulate/elaboration.adb
parent5c9e171c40383feb36c35d7de81b74134aafeffe (diff)
downloadghdl-e7adf198b9cfc3a79e690767d499147a97ffea17.tar.gz
ghdl-e7adf198b9cfc3a79e690767d499147a97ffea17.tar.bz2
ghdl-e7adf198b9cfc3a79e690767d499147a97ffea17.zip
simul: fix local protected object, boolean for-generate loop
Diffstat (limited to 'src/vhdl/simulate/elaboration.adb')
-rw-r--r--src/vhdl/simulate/elaboration.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/simulate/elaboration.adb b/src/vhdl/simulate/elaboration.adb
index 963b17d8c..46eecb5ee 100644
--- a/src/vhdl/simulate/elaboration.adb
+++ b/src/vhdl/simulate/elaboration.adb
@@ -523,7 +523,7 @@ package body Elaboration is
Protected_Table.Increment_Last;
Res := Create_Protected_Value (Protected_Table.Last);
- Inst := Create_Subprogram_Instance (Block, Bod);
+ Inst := Create_Subprogram_Instance (Block, null, Bod);
Protected_Table.Table (Res.Prot) := Inst;
-- Temporary put the instancce on the stack in case of function calls
@@ -1693,8 +1693,8 @@ package body Elaboration is
Elaborate_Statement_Part
(Sub_Instance, Get_Concurrent_Statement_Chain (Bod));
+ exit when Is_Equal (Index, Bound.Right);
Update_Loop_Index (Index, Bound);
- exit when not Is_In_Range (Index, Bound);
end loop;
-- FIXME: destroy index ?
end Elaborate_For_Generate_Statement;