aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-09-25 04:37:25 +0200
committerTristan Gingold <tgingold@free.fr>2016-09-25 04:37:25 +0200
commit1aa52e7e320f15fac7f540ee0e7f92910b5ee41f (patch)
tree7c888a34a9fb6bc18fa1cd36b61cca660b78a80a /src/vhdl/sem_expr.adb
parent080741e1cd0132378c392e71ff23b6ee55e48ddb (diff)
downloadghdl-1aa52e7e320f15fac7f540ee0e7f92910b5ee41f.tar.gz
ghdl-1aa52e7e320f15fac7f540ee0e7f92910b5ee41f.tar.bz2
ghdl-1aa52e7e320f15fac7f540ee0e7f92910b5ee41f.zip
vhdl08: preliminary support of interface subprogram
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r--src/vhdl/sem_expr.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index 620931b24..902162d12 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -1395,7 +1395,7 @@ package body Sem_Expr is
else
-- Only one interpretation for the subprogram name.
if Is_Func then
- if Get_Kind (Inter_List) /= Iir_Kind_Function_Declaration then
+ if not Is_Function_Declaration (Inter_List) then
Error_Msg_Sem (+Expr, "name does not designate a function",
Cont => True);
Error_Msg_Sem (+Expr, "name is %n defined at %l",
@@ -1403,7 +1403,7 @@ package body Sem_Expr is
return Null_Iir;
end if;
else
- if Get_Kind (Inter_List) /= Iir_Kind_Procedure_Declaration then
+ if not Is_Procedure_Declaration (Inter_List) then
Error_Msg_Sem (+Expr, "name does not designate a procedure",
Cont => True);
Error_Msg_Sem (+Expr, "name is %n defined at %l",