diff options
author | Brian Drummond | 2013-12-15 11:49:47 +0000 |
---|---|---|
committer | Brian Drummond | 2013-12-15 11:49:47 +0000 |
commit | 90e6af708c10805f4cbdb4b638103635a5022d28 (patch) | |
tree | 82b4ea8125ecf15add4e10c19d9199c8552f15fa | |
parent | 3bf5fde4a2ccc7316e7d5e61cc2b893969925fbe (diff) | |
download | ghdl-90e6af708c10805f4cbdb4b638103635a5022d28.tar.gz ghdl-90e6af708c10805f4cbdb4b638103635a5022d28.tar.bz2 ghdl-90e6af708c10805f4cbdb4b638103635a5022d28.zip |
Fix potential infinite recursion in previous commit
-rw-r--r-- | iirs.adb | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |