diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-12-23 13:41:39 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-12-23 13:41:39 +0100 |
commit | feb198c93bd936b20d5b3d878080ec4cdf7e480b (patch) | |
tree | b27b263b31de29e77acc6bf271a3776661446637 /src/vhdl/sem_specs.adb | |
parent | 73bb7fd335965c9c6079415ce50fb2059c3e6265 (diff) | |
download | ghdl-feb198c93bd936b20d5b3d878080ec4cdf7e480b.tar.gz ghdl-feb198c93bd936b20d5b3d878080ec4cdf7e480b.tar.bz2 ghdl-feb198c93bd936b20d5b3d878080ec4cdf7e480b.zip |
parse/sem: be more tolerante to parse errors.
Diffstat (limited to 'src/vhdl/sem_specs.adb')
-rw-r--r-- | src/vhdl/sem_specs.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/sem_specs.adb b/src/vhdl/sem_specs.adb index 91a4ac169..d4713b264 100644 --- a/src/vhdl/sem_specs.adb +++ b/src/vhdl/sem_specs.adb @@ -1360,7 +1360,7 @@ package body Sem_Specs is begin Primary_Entity_Aspect := Null_Iir; Comp_Name := Get_Component_Name (Spec); - if Comp_Name = Null_Iir then + if Is_Error (Comp_Name) then pragma Assert (Flags.Flag_Force_Analysis); return; end if; @@ -1467,7 +1467,7 @@ package body Sem_Specs is begin Sem_Component_Specification (Parent_Stmts, Conf, Primary_Entity_Aspect); Component := Get_Component_Name (Conf); - if Component = Null_Iir then + if Is_Error (Component) then pragma Assert (Flags.Flag_Force_Analysis); return; end if; |