aboutsummaryrefslogtreecommitdiffstats
path: root/translate/grt
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2014-01-14 04:28:23 +0100
committerTristan Gingold <tgingold@free.fr>2014-01-14 04:28:23 +0100
commit9b22b46458f2c80d87ffd957aa7df78cb98ee710 (patch)
treee3ab8c8134e531081f89e31c43f74c97576ae48c /translate/grt
parent86bfd8ac497f4e4a753ddbd9d382b377d876dcbc (diff)
downloadghdl-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.adb2
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);