aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_stmts.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-vhdl_stmts.adb')
-rw-r--r--src/synth/synth-vhdl_stmts.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth/synth-vhdl_stmts.adb b/src/synth/synth-vhdl_stmts.adb
index 52f08ce86..78a177359 100644
--- a/src/synth/synth-vhdl_stmts.adb
+++ b/src/synth/synth-vhdl_stmts.adb
@@ -298,13 +298,13 @@ package body Synth.Vhdl_Stmts is
| Iir_Kind_Dereference =>
declare
Acc : Memtyp;
- Idx : Heap_Index;
+ Idx : Heap_Ptr;
begin
Synth_Assignment_Prefix
(Syn_Inst, Get_Prefix (Pfx), Dest_Base, Dest_Typ, Dest_Off);
Acc := (Dest_Typ, Dest_Base.Val.Mem + Dest_Off.Mem_Off);
Idx := Read_Access (Acc);
- if Idx = Null_Heap_Index then
+ if Idx = Null_Heap_Ptr then
Error_Msg_Synth (Syn_Inst, Pfx, "NULL access dereferenced");
Dest_Base := No_Valtyp;
Dest_Typ := Dest_Typ.Acc_Acc;