aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-23 13:41:39 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-23 13:41:39 +0100
commitfeb198c93bd936b20d5b3d878080ec4cdf7e480b (patch)
treeb27b263b31de29e77acc6bf271a3776661446637 /src/vhdl/sem.adb
parent73bb7fd335965c9c6079415ce50fb2059c3e6265 (diff)
downloadghdl-feb198c93bd936b20d5b3d878080ec4cdf7e480b.tar.gz
ghdl-feb198c93bd936b20d5b3d878080ec4cdf7e480b.tar.bz2
ghdl-feb198c93bd936b20d5b3d878080ec4cdf7e480b.zip
parse/sem: be more tolerante to parse errors.
Diffstat (limited to 'src/vhdl/sem.adb')
-rw-r--r--src/vhdl/sem.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/sem.adb b/src/vhdl/sem.adb
index 8729a97e0..190623e9c 100644
--- a/src/vhdl/sem.adb
+++ b/src/vhdl/sem.adb
@@ -100,7 +100,7 @@ package body Sem is
-- Resolve the name.
Name := Get_Entity_Name (Library_Unit);
- if Name = Null_Iir then
+ if Is_Error (Name) then
pragma Assert (Flags.Flag_Force_Analysis);
return Null_Iir;
end if;