aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap6.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/translate/trans-chap6.adb')
-rw-r--r--src/vhdl/translate/trans-chap6.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/translate/trans-chap6.adb b/src/vhdl/translate/trans-chap6.adb
index e558cb726..f0ee207ad 100644
--- a/src/vhdl/translate/trans-chap6.adb
+++ b/src/vhdl/translate/trans-chap6.adb
@@ -240,7 +240,7 @@ package body Trans.Chap6 is
Deep_Rng : Iir;
Deep_Reverse : Boolean;
begin
- Index1 := Stabilize (Index);
+ Index1 := Stabilize (Index, True);
pragma Unreferenced (Index);
if Index_Expr = Null_Iir then
@@ -367,7 +367,7 @@ package body Trans.Chap6 is
Index_Base_Type := Get_Base_Type (Index_Type);
Index := Chap7.Translate_Expression (Expr, Index_Base_Type);
- Stabilize (Index);
+ Index := Stabilize (Index, True);
if Get_Direction (Index_Range) = Dir_To then
-- Direction TO: INDEX - LEFT.