aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_stmts.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/sem_stmts.adb')
-rw-r--r--src/vhdl/sem_stmts.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/sem_stmts.adb b/src/vhdl/sem_stmts.adb
index d352aac0a..d79e05d2b 100644
--- a/src/vhdl/sem_stmts.adb
+++ b/src/vhdl/sem_stmts.adb
@@ -1510,7 +1510,7 @@ package body Sem_Stmts is
-- Create a default binding indication if necessary.
if Get_Component_Configuration (Stmt) = Null_Iir
- and then Get_Kind (Decl) = Iir_Kind_Component_Declaration
+ and then Is_Component_Instantiation (Stmt)
then
Entity_Unit := Get_Visible_Entity_Declaration (Decl);
if Entity_Unit = Null_Iir then