aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-06 15:41:59 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-06 15:41:59 +0200
commit4073a0be10c0cf14c87f3f19fc3baf594148149c (patch)
tree6ec683f411900bcb3111116e73a510aa0b1ae94e
parent1938ee7b5d0c65c46776ab3574cbb7716dbae2ea (diff)
downloadghdl-4073a0be10c0cf14c87f3f19fc3baf594148149c.tar.gz
ghdl-4073a0be10c0cf14c87f3f19fc3baf594148149c.tar.bz2
ghdl-4073a0be10c0cf14c87f3f19fc3baf594148149c.zip
synth: fix crash for port subtype in component.
-rw-r--r--src/synth/synth-insts.adb2
1 files changed, 1 insertions, 1 deletions
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;