diff options
author | Tristan Gingold <tgingold@free.fr> | 2014-05-29 13:42:22 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2014-05-29 13:42:22 +0200 |
commit | 2f9dd1c6ae96ae1c53f2ad88d3ea2a8cc298fa24 (patch) | |
tree | 1fb24b1302be1503d631766b626fccb599fbac3a | |
parent | 595dda51e4f135f63a6f91970213f4de58201569 (diff) | |
download | ghdl-2f9dd1c6ae96ae1c53f2ad88d3ea2a8cc298fa24.tar.gz ghdl-2f9dd1c6ae96ae1c53f2ad88d3ea2a8cc298fa24.tar.bz2 ghdl-2f9dd1c6ae96ae1c53f2ad88d3ea2a8cc298fa24.zip |
Add_Dependence: noop if no current design.
-rw-r--r-- | sem.adb | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -44,9 +44,17 @@ package body Sem is procedure Sem_Component_Configuration (Conf : Iir_Component_Configuration; Father : Iir); - procedure Add_Dependence (Unit : Iir) is + procedure Add_Dependence (Unit : Iir) + is + Targ : constant Iir := Get_Current_Design_Unit; begin - Add_Dependence (Get_Current_Design_Unit, Unit); + -- During normal analysis, there is a current design unit. But not + -- during debugging outside of any context. + if Targ = Null_Iir then + return; + end if; + + Add_Dependence (Targ, Unit); end Add_Dependence; -- LRM 1.1 Entity declaration. |