aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_expr.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r--src/vhdl/sem_expr.adb3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index e85e1c37c..4e27eb1ce 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -1781,8 +1781,7 @@ package body Sem_Expr is
Decl := Get_Non_Alias_Declaration (Interpretation);
-- It is compatible with operand types ?
- pragma Assert (Kind_In (Decl, Iir_Kind_Function_Declaration,
- Iir_Kind_Interface_Function_Declaration));
+ pragma Assert (Is_Function_Declaration (Decl));
-- LRM08 12.3 Visibility
-- [...] or all visible declarations denote the same named entity.