diff options
author | Tristan Gingold <tgingold@free.fr> | 2014-01-14 04:28:23 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2014-01-14 04:28:23 +0100 |
commit | 9b22b46458f2c80d87ffd957aa7df78cb98ee710 (patch) | |
tree | e3ab8c8134e531081f89e31c43f74c97576ae48c /translate/grt | |
parent | 86bfd8ac497f4e4a753ddbd9d382b377d876dcbc (diff) | |
download | ghdl-9b22b46458f2c80d87ffd957aa7df78cb98ee710.tar.gz ghdl-9b22b46458f2c80d87ffd957aa7df78cb98ee710.tar.bz2 ghdl-9b22b46458f2c80d87ffd957aa7df78cb98ee710.zip |
Avoid rebuilding complex object after a copy.
(Use an offset within records for complex types).
Diffstat (limited to 'translate/grt')
-rw-r--r-- | translate/grt/grt-rtis_utils.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/translate/grt/grt-rtis_utils.adb b/translate/grt/grt-rtis_utils.adb index 52b86001d..f8ff5d62f 100644 --- a/translate/grt/grt-rtis_utils.adb +++ b/translate/grt/grt-rtis_utils.adb @@ -335,7 +335,7 @@ package body Grt.Rtis_Utils is Addr := Obj_Addr + El.Val_Off; end if; if Rti_Complex_Type (El.Eltype) then - Addr := To_Addr_Acc (Addr).all; + Addr := Obj_Addr + To_Ghdl_Index_Acc (Addr).all; end if; Append (Name, '.'); Append (Name, El.Name); |