aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-utils.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-utils.adb')
-rw-r--r--src/vhdl/vhdl-utils.adb7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vhdl/vhdl-utils.adb b/src/vhdl/vhdl-utils.adb
index 3d6115662..dffc7c903 100644
--- a/src/vhdl/vhdl-utils.adb
+++ b/src/vhdl/vhdl-utils.adb
@@ -1305,17 +1305,14 @@ package body Vhdl.Utils is
end Is_Operation_For_Type;
-- From a block_specification, returns the block.
- function Get_Block_From_Block_Specification (Block_Spec : Iir)
- return Iir
+ function Get_Block_From_Block_Specification (Block_Spec : Iir) return Iir
is
Res : Iir;
begin
case Get_Kind (Block_Spec) is
when Iir_Kind_Design_Unit =>
Res := Get_Library_Unit (Block_Spec);
- if Get_Kind (Res) /= Iir_Kind_Architecture_Body then
- raise Internal_Error;
- end if;
+ pragma Assert (Get_Kind (Res) = Iir_Kind_Architecture_Body);
return Res;
when Iir_Kind_Block_Statement
| Iir_Kind_Architecture_Body