aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-06 18:41:34 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-06 20:10:59 +0200
commitdde006868a8864a9152ad396c519ddc4cbe9cfd8 (patch)
treece86c8986bc1add3d2850d39d26cad09538d908d
parent836edf21a42e2a7a0b085214817ae6b1d2699237 (diff)
downloadghdl-dde006868a8864a9152ad396c519ddc4cbe9cfd8.tar.gz
ghdl-dde006868a8864a9152ad396c519ddc4cbe9cfd8.tar.bz2
ghdl-dde006868a8864a9152ad396c519ddc4cbe9cfd8.zip
ghdl -s: do not perform analysis in case of parse error. Fix #1196
-rw-r--r--src/ghdldrv/ghdllocal.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdllocal.adb b/src/ghdldrv/ghdllocal.adb
index 45a0152fa..1f70ceae1 100644
--- a/src/ghdldrv/ghdllocal.adb
+++ b/src/ghdldrv/ghdllocal.adb
@@ -862,7 +862,7 @@ package body Ghdllocal is
Put_Line (":");
end if;
Design_File := Vhdl.Sem_Lib.Load_File_Name (Id);
- if Design_File = Null_Iir then
+ if Errorout.Nbr_Errors /= 0 then
return;
end if;