From 90fb8d3ae8ba631fd9eea7f7f71a0a8a65e76cfd Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 9 Mar 2020 20:33:44 +0100 Subject: synthesis: handle array in record. --- src/synth/synth-stmts.adb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb index a5557cd94..2e9c0369c 100644 --- a/src/synth/synth-stmts.adb +++ b/src/synth/synth-stmts.adb @@ -191,14 +191,7 @@ package body Synth.Stmts is Dest_Type := Get_Array_Element (Dest_Type); if Voff /= No_Net then - if Dest_Off /= 0 then - -- TODO: add addidx (addoff ?) - if Off /= 0 or else Dest_Type.W /= 1 then - raise Internal_Error; - end if; - else - Dest_Off := Off; - end if; + Dest_Off := Dest_Off + Off; if Dest_Voff = No_Net then Dest_Voff := Voff; Dest_Rdwd := Dest_W; -- cgit v1.2.3