summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Gingold2013-12-29 14:43:56 +0100
committerTristan Gingold2013-12-29 14:43:56 +0100
commitaad9a60cc0cba4ce6f626c6367d11b14dba70926 (patch)
tree51c2712cdd4db1075209dcf6d5187e486c77a55d
parentc3aaf322e299e5c4f9611446c5184eb9d4f6938c (diff)
downloadghdl-aad9a60cc0cba4ce6f626c6367d11b14dba70926.tar.gz
ghdl-aad9a60cc0cba4ce6f626c6367d11b14dba70926.tar.bz2
ghdl-aad9a60cc0cba4ce6f626c6367d11b14dba70926.zip
Revert cs156 and cs157 (the issues are caught before).
-rw-r--r--iirs.adb11
1 files changed, 0 insertions, 11 deletions
diff --git a/iirs.adb b/iirs.adb
index 3bb39dc..405374c 100644
--- a/iirs.adb
+++ b/iirs.adb
@@ -145,17 +145,6 @@ package body Iirs is
-- Speed up: avoid to check that nkind is in the bounds of Iir_Kind.
pragma Suppress (Range_Check);
begin
- if An_Iir = Null_Iir then
- if Nbr_Errors = 0 then
- -- 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);
- raise Compilation_Error;
- end if;
- end if;
return Iir_Kind'Val (Get_Nkind (An_Iir));
end Get_Kind;