diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-11-17 18:35:39 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-17 18:35:39 +0100 |
commit | e58c9807fa183b6d1324f9b36ffe1a86bf1f42cb (patch) | |
tree | 85aca34e78e7bf8b7d60dd51d59a8fb53419fbf5 /src | |
parent | a38dd007e58ae234b12e6a6f61be5dfaa6b3a3d8 (diff) | |
download | ghdl-e58c9807fa183b6d1324f9b36ffe1a86bf1f42cb.tar.gz ghdl-e58c9807fa183b6d1324f9b36ffe1a86bf1f42cb.tar.bz2 ghdl-e58c9807fa183b6d1324f9b36ffe1a86bf1f42cb.zip |
vhdl-utils.adb: minor refactoring
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-utils.adb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/vhdl/vhdl-utils.adb b/src/vhdl/vhdl-utils.adb index 2cbc07890..fc97ba185 100644 --- a/src/vhdl/vhdl-utils.adb +++ b/src/vhdl/vhdl-utils.adb @@ -1515,13 +1515,9 @@ package body Vhdl.Utils is return Null_Iir; end if; - case Get_Kind (Res) is - when Iir_Kind_Entity_Declaration - | Iir_Kind_Foreign_Module => - return Res; - when others => - raise Internal_Error; - end case; + pragma Assert (Kind_In (Res, Iir_Kind_Entity_Declaration, + Iir_Kind_Foreign_Module)); + return Res; end Get_Entity; function Get_Configuration (Aspect : Iir) return Iir |