From 4073a0be10c0cf14c87f3f19fc3baf594148149c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 6 Oct 2019 15:41:59 +0200 Subject: synth: fix crash for port subtype in component. --- src/synth/synth-insts.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/synth/synth-insts.adb b/src/synth/synth-insts.adb index 2044233ad..85845c09b 100644 --- a/src/synth/synth-insts.adb +++ b/src/synth/synth-insts.adb @@ -580,7 +580,7 @@ package body Synth.Insts is Port := Get_Output (Inst, Nbr_Outputs); Port := Builders.Build_Port (Get_Build (Syn_Inst), Port); O := Create_Value_Net - (Port, Get_Value_Type (Syn_Inst, Get_Type (Inter))); + (Port, Get_Value_Type (Comp_Inst, Get_Type (Inter))); Synth_Assignment (Syn_Inst, Actual, O, Assoc); Nbr_Outputs := Nbr_Outputs + 1; end case; -- cgit v1.2.3