summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Drummond2013-12-15 11:49:47 +0000
committerBrian Drummond2013-12-15 11:49:47 +0000
commit90e6af708c10805f4cbdb4b638103635a5022d28 (patch)
tree82b4ea8125ecf15add4e10c19d9199c8552f15fa
parent3bf5fde4a2ccc7316e7d5e61cc2b893969925fbe (diff)
downloadghdl-90e6af708c10805f4cbdb4b638103635a5022d28.tar.gz
ghdl-90e6af708c10805f4cbdb4b638103635a5022d28.tar.bz2
ghdl-90e6af708c10805f4cbdb4b638103635a5022d28.zip
Fix potential infinite recursion in previous commit
-rw-r--r--iirs.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/iirs.adb b/iirs.adb
index b22ef6e..4cc9a59 100644
--- a/iirs.adb
+++ b/iirs.adb
@@ -147,7 +147,9 @@ package body Iirs is
begin
if An_Iir = Null_Iir then
if Nbr_Errors = 0 then
- Failed ("Mode", An_Iir);
+ -- calling "Failed" would get back here via Error_Kind
+ Error_Msg ("Cannot get kind of null object : aborting.");
+ raise Internal_Error;
else
Error_Msg_Sem ("Aborting compilation due to previous errors.",
An_Iir);