aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-11-12 20:23:05 +0100
committerTristan Gingold <tgingold@free.fr>2019-11-12 20:36:04 +0100
commit72d9a475e19ab200b87975750dced5ab47994aac (patch)
tree15abe2c67d6e12c4a1d0ea3ef5d1c7f2dcd2e6d3
parentc2b6fd2775bdfb183a4de81d64f745e282ffd9fb (diff)
downloadghdl-72d9a475e19ab200b87975750dced5ab47994aac.tar.gz
ghdl-72d9a475e19ab200b87975750dced5ab47994aac.tar.bz2
ghdl-72d9a475e19ab200b87975750dced5ab47994aac.zip
synth-stmts: improve support of consts in
-rw-r--r--src/synth/synth-stmts.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index eb2a67133..be804c978 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -169,6 +169,7 @@ package body Synth.Stmts is
Synth_Assignment_Prefix
(Syn_Inst, Get_Prefix (Pfx),
Dest_Obj, Dest_Off, Dest_Voff, Dest_Rdwd, Dest_Type);
+ Strip_Const (Dest_Obj);
Dest_W := Dest_Type.W;
Synth_Indexed_Name (Syn_Inst, Pfx, Dest_Type, Voff, Off, W);
@@ -245,6 +246,7 @@ package body Synth.Stmts is
Synth_Assignment_Prefix
(Syn_Inst, Get_Prefix (Pfx),
Dest_Obj, Dest_Off, Dest_Voff, Dest_Rdwd, Dest_Type);
+ Strip_Const (Dest_Obj);
Get_Onedimensional_Array_Bounds (Dest_Type, Pfx_Bnd, El_Typ);
Synth_Slice_Suffix (Syn_Inst, Pfx, Pfx_Bnd, El_Typ.W,