aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_assocs.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/sem_assocs.adb')
-rw-r--r--src/vhdl/sem_assocs.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/sem_assocs.adb b/src/vhdl/sem_assocs.adb
index 48856557c..2136466b3 100644
--- a/src/vhdl/sem_assocs.adb
+++ b/src/vhdl/sem_assocs.adb
@@ -1564,6 +1564,7 @@ package body Sem_Assocs is
Assoc := Get_Parameter_Association_Chain (Func);
Free_Iir (Assoc);
Set_Parameter_Association_Chain (Func, Null_Iir);
+ Name_To_Method_Object (Func, Conv);
return Func;
when Iir_Kind_Type_Conversion =>
return Func;
@@ -1600,6 +1601,7 @@ package body Sem_Assocs is
Set_Type (Res, Get_Return_Type (Func));
Set_Expr_Staticness (Res, None);
Mark_Subprogram_Used (Func);
+ Name_To_Method_Object (Res, Conv);
when Iir_Kind_Subtype_Declaration
| Iir_Kind_Type_Declaration =>
Res := Create_Iir (Iir_Kind_Type_Conversion);