diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-02-25 07:41:29 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-02-25 07:41:29 +0100 |
commit | 05d1f28ddca493e9c19e72b65d8ec3772187bead (patch) | |
tree | 3beae9d49ccbc494dc489c7d2f34923bcc53a28b /src/vhdl/sem_expr.adb | |
parent | 807570488884a51ed60c38f4ce0853b8e1191e3c (diff) | |
download | ghdl-05d1f28ddca493e9c19e72b65d8ec3772187bead.tar.gz ghdl-05d1f28ddca493e9c19e72b65d8ec3772187bead.tar.bz2 ghdl-05d1f28ddca493e9c19e72b65d8ec3772187bead.zip |
Minor rewrite for previous patch.
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r-- | src/vhdl/sem_expr.adb | 3 |
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. |